A vertical icon rail (Blender/VSCode-style activity bar): fixed-width column of tabs,
one active at a time with an accent indicator. onSelect(index) fires on change.
Constructor
new(width:Float, height:Float, tabs:Array<UIRailTabDef>, ?onSelect:Int ‑> Void)
Parameters:
width | the rail width |
|---|---|
height | the rail height |
tabs | the initial tab set |
onSelect | fired with the new index when the active tab changes |
Variables
Methods
select(index:Int):Void
Programmatically activates a tab.
Parameters:
index | the tab to activate (fires |
|---|
setTabs(tabs:Array<UIRailTabDef>):Void
Replaces the tab set (the selection clamps to 0 when out of range).
Parameters:
tabs | the new tabs |
|---|