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 | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Alt+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${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" | "any"

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;
  • any - the action is enable when any of the above conditions apply.

Default

"any"

onSelect

() => void

Handler for the action.

title?

string

Title for the action button or menu item.

Omit.title