Listbar (from Box)¶
A horizontal list. Useful for a main menu bar.
Options¶
- Inherits all from Box.
- style.selected - Style for a selected item.
- style.item - Style for an unselected item.
- commands/items - Set buttons using an object with keys as titles of buttons, containing of objects containing keys of
keys
andcallback
. - autoCommandKeys - Automatically bind list buttons to keys 0-9.
Properties¶
- Inherits all from Box.
Events¶
- Inherits all from Box.
Methods¶
- Inherits all from Box.
- setItems(commands) - Set commands (see
commands
option above). - add/addItem/appendItem(item, callback) - Append an item to the bar.
- select(offset) - Select an item on the bar.
- removeItem(child) - Remove item from the bar.
- move(offset) - Move relatively across the bar.
- moveLeft(offset) - Move left relatively across the bar.
- moveRight(offset) - Move right relatively across the bar.
- selectTab(index) - Select button and execute its callback.
Last update: February 22, 2020