Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 5.21 KB

File metadata and controls

64 lines (45 loc) · 5.21 KB

gridstack

Interfaces

GridStackProps

Defined in: react/projects/lib/src/gridstack.tsx:31

Properties

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

GridStackHandle

Defined in: react/projects/lib/src/gridstack.tsx:54

Properties

Property Type Defined in
getGrid () => null | GridStack react/projects/lib/src/gridstack.tsx:55

Variables

GridStackComponent

const GridStackComponent: ForwardRefExoticComponent<GridStackProps & RefAttributes<GridStackHandle>>;

Defined in: react/projects/lib/src/gridstack.tsx:66

Type Aliases

ComponentMap

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).