charton API / @chart-on/ui / index / ToolbarItemLayout
Interface: ToolbarItemLayout
Defined in: ui/src/toolbar.ts:25
Placement fields every item accepts.
Properties
align?
optionalalign?:"end"|"start"
Defined in: ui/src/toolbar.ts:29
end pushes the item to the right edge. Default end for the view group, else start.
group?
optionalgroup?:ToolbarGroup
Defined in: ui/src/toolbar.ts:35
Placement group from roadmap/toolbar-layout.md. Context items render first and overflow last; view items sit at the right edge and overflow first. Ungrouped items rank with the analysis group.
hidden?
optionalhidden?:boolean
Defined in: ui/src/toolbar.ts:27
Keep the item in the list but do not show it.
priority?
optionalpriority?:number
Defined in: ui/src/toolbar.ts:41
When the toolbar is too narrow, lower values move into the "more" menu first, within the item's group. Items without a priority go last. Custom items go after every other item and are hidden rather than listed.