Skip to main content

Interface: ToolbarActionSaveProps

Defined in: widgets/toolbarAction.tsx:163

Props for ToolbarActionSave component.

See

ToolbarActionSave

Extends

Properties

PropertyTypeDescriptionInherited from

children?

ReactNode

Action content.

className?

string

Additional CSS class for the component.

Omit.className

hotkey?

null | `Alt+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${Capitalize<string>}` | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}`

Keyboard hotkey for the action when it's mounted.

Passing null disables a default hotkey if there is one.

Omit.hotkey

mode

"layout" | "authoring"

Enable mode for the action:

  • layout - the action is enabled when there are unsaved changes to the diagram layout (when a command history is non-empty);
  • authoring - the action is enabled when graph authoring state is non-empty.

onSelect

() => void

Handler for the action.

title?

string

Title for the action button or menu item.

Omit.title