AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0
ToolbarButtonDropdownDefinition
Toolbar button that opens a dropdown menu
Signature
interface ToolbarButtonDropdownDefinition {
id: string;
label: string;
icon?: string | ((ctx: ToolbarContext) => string);
dropdownItems: ToolbarDropdownItem[];
disabled?: (ctx: ToolbarContext) => boolean;
hidden?: (ctx: ToolbarContext) => boolean;
fixed?: boolean;
priority?: number;
}Members
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
label | string | yes | — |
icon | string | (ctx: ToolbarContext) => string | no | — |
dropdownItems | ToolbarDropdownItem[] | yes | — |
disabled | (ctx: ToolbarContext) => boolean | no | — |
hidden | (ctx: ToolbarContext) => boolean | no | — |
fixed | boolean | no | If true, cannot be removed in edit mode |
priority | number | no | Higher priority items stay visible longer when collapsing (default 0) |