Defined in: react/projects/lib/src/gridstack.tsx:31
| Property | Type | Description | Defined in |
|---|---|---|---|
options |
GridStackOptions |
- | react/projects/lib/src/gridstack.tsx:32 |
components? |
ComponentMap |
Map component field in widget JSON to React components (recommended / component mode) |
react/projects/lib/src/gridstack.tsx:34 |
children? |
ReactNode |
- | react/projects/lib/src/gridstack.tsx:35 |
emptyContent? |
ReactNode |
Content to render when the grid has no items (mirrors Angular [empty-content]). |
react/projects/lib/src/gridstack.tsx:37 |
className? |
string |
- | react/projects/lib/src/gridstack.tsx:38 |
style? |
CSSProperties |
- | react/projects/lib/src/gridstack.tsx:39 |
onAdded? |
(e, nodes) => void |
- | react/projects/lib/src/gridstack.tsx:40 |
onChange? |
(e, nodes) => void |
- | react/projects/lib/src/gridstack.tsx:41 |
onRemoved? |
(e, nodes) => void |
- | react/projects/lib/src/gridstack.tsx:42 |
onEnable? |
(e) => void |
- | react/projects/lib/src/gridstack.tsx:43 |
onDisable? |
(e) => void |
- | react/projects/lib/src/gridstack.tsx:44 |
onDrag? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:45 |
onDragStart? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:46 |
onDragStop? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:47 |
onDropped? |
GridStackDroppedHandler |
- | react/projects/lib/src/gridstack.tsx:48 |
onResize? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:49 |
onResizeStart? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:50 |
onResizeStop? |
GridStackElementHandler |
- | react/projects/lib/src/gridstack.tsx:51 |
Defined in: react/projects/lib/src/gridstack.tsx:54
| Property | Type | Defined in |
|---|---|---|
getGrid |
() => null | GridStack |
react/projects/lib/src/gridstack.tsx:55 |
const GridStackComponent: ForwardRefExoticComponent<GridStackProps & RefAttributes<GridStackHandle>>;Defined in: react/projects/lib/src/gridstack.tsx:66
type ComponentMap = Record<string, ComponentType<Record<string, unknown>>>;Defined in: react/projects/lib/src/gridstack.tsx:29
Maps component JSON keys to React components (props are merged from saved props).