GridCell component for React, written in TypeScript
npm install gridcellxgetBoundingClientRect in React 16
npm install --save m-react-splitters
JavaScript, the other panel's width is set by CSS.
import Splitter from 'm-react-splitters';
import 'm-react-splitters/lib/splitters.css';
`
Vertical splitter
`js
primaryPaneMinWidth={number}
primaryPaneMaxWidth="string" (% or px)
primaryPaneWidth="string" (% or px)
`
Vertical splitter
`js
primaryPaneMinWidth={number}
primaryPaneMaxWidth="string" (% or px)
primaryPaneWidth="string" (% or px)
`
Horizontal splitter
`js
primaryPaneMinHeight={number}
primaryPaneMaxHeight="string" (% or px)
primaryPaneHeight="string" (% or px)
`
Another options for splitter are:
* postPoned: Boolean
* this specifies how the resize will work
* default is false
* className: string
* primaryPaneClassName: string
* secondaryPaneClassName: string
* dispatchResize: Boolean
* This dispatch resize event, it is meant for other components which resize on window resize
* it's something like temporary callback function
* Default is false
* or you can use:
onDragFinished: function
* maximizedPrimaryPane: Boolean
* minimalizedPrimaryPane: Boolean
`tsx
position="horizontal"
primaryPaneMaxHeight="80%"
primaryPaneMinHeight={0}
primaryPaneHeight="400px"
dispatchResize={true}
postPoned={true}
>
position="vertical"
primaryPaneMaxWidth="80%"
primaryPaneMinWidth={0}
primaryPaneWidth="400px"
postPoned={false}
>
``