Skip to content

SideDialogPanelProps

@firecms/core


@firecms/core / SideDialogPanelProps

Defined in: types/side_dialogs_controller.tsx:43

Props used to open a side dialog

optional additional: any

Defined in: types/side_dialogs_controller.tsx:81

Use this prop to store additional data in the panel


component: ReactNode

Defined in: types/side_dialogs_controller.tsx:53

The component type that will be rendered


key: string

Defined in: types/side_dialogs_controller.tsx:48

A key that identifies this panel


optional onClose: () => void

Defined in: types/side_dialogs_controller.tsx:76

Callback when the panel is closed

void


optional parentUrlPath: string

Defined in: types/side_dialogs_controller.tsx:71

If the navigation stack is empty (you landed in the urlPath url), what url path to change to when the panel gets closed.


optional urlPath: string

Defined in: types/side_dialogs_controller.tsx:65

When open, change the URL to this path. Note that if you want to restore state from a URL you need to add the logic yourself by listening to URL updates, and probably call open.


optional width: string

Defined in: types/side_dialogs_controller.tsx:58

Optional width of the panel