A horizontal button strip: add text or icon buttons, separators, and flexible spacers. The
toolbar draws a themed bar (background + bottom border + separator ticks) and lays its items
out left to right; spacers absorb the leftover width, so items after a spacer are pushed to
the right edge. Buttons are ordinary UIButtons returned for further tweaking (accent, etc.).
Constructor
Variables
Methods
addButton(label:String, width:Float, ?onClick:() ‑> Void):UIButton
Adds a text button.
Parameters:
label | the button label |
|---|---|
width | the button width |
onClick | the click handler |
Returns:
the button (for further configuration)
addIconButton(icon:UIIcon, ?onClick:() ‑> Void):UIButton
Adds an icon-only button.
Parameters:
icon | the icon |
|---|---|
onClick | the click handler |
Returns:
the button (for further configuration)
addWidget(widget:UIComponent, width:Float):UIComponent
Adds an arbitrary widget to the bar (e.g. a UIDropdown), sized and vertically centered
like a button. Returns the widget for further configuration.
Parameters:
widget | the component to host |
|---|---|
width | the widget's width on the bar |