PanelGroup
A group of panels that has constraints and a user can resize
Name | Type | Description |
---|---|---|
handle | Ref<PanelGroupHandle> | undefined; | Imperative handle to control the group |
snapshot | GroupMachineSnapshot | undefined; | Persisted state to initialized the machine with |
autosaveId | string | undefined; | An id to use for autosaving the layout |
orientation | Orientation | undefined; | The orientation of the grid |
autosaveStrategy | "localStorage" | "cookie" | undefined; | How to save the persisted state |
Name | Type | Description |
---|---|---|
getId | () => string; | The id of the group |
getPixelSizes | () => number[] | Get the sizes of all the items in the layout as pixels |
getPercentageSizes | () => number[] | Get the sizes of all the items in the layout as percentages of the group size |
setSizes | (items: import("/vercel/path0/packages/state/dist/commonjs/index").Unit[]) => void | Set the size of all the items in the layout.
This just calls NOTE: Setting handle sizes will do nothing. |
getTemplate | () => string; | Get the template for the group in pixels. Useful for testing |
getState | () => "idle" | "dragging"; |