ActionsPanel

관리자:
jhoncool
GitHub
withNote
withClose

Use an ActionsPanel to render multiple buttons in a row. When there is not enough space, buttons that don't fit will be added to an overflow menu.

Example

Action icons

Use Button or DropdownMenu properties to set icons.

Note

Use the renderNote property to render a note.

10 items

Groups in dropdown menu

Use action.dropdown.group for groping actions in dropdown menu.

Action sub-menu and nested dropdown menu

See actions example below and documentation about the DropdownMenu component.

Properties

NameDescriptionTypeDefault
actionsArray of actionsActionsPanelItem[]
onCloseOptional close button click handler() => void
renderNoteOptional render-prop for displaying the content of a note() => React.ReactNode
classNameOptional HTML class attributestring
noteClassNameOptional HTML class attributestring
maxRowActionsMaximum number of actions in a rownumber4

ActionsPanelItem:

NameDescriptionTypeDefault
idUnique action idstring
dropdownSettings for dropdown action in overflow menu{item: DropdownMenuItem; group?: string}
buttonSettings for button action{props: ButtonProps}
collapsedIf true, then item always inside the dropdownboolean