EMenuBar Menu bar
Examples
Menu bar
Properties
activeIndexintIndex of the current selected or displayed item.
-1: no selection
0 and above: item index
-1currentIndexstringIdentifier of the selected menu item.
Menu item identifier"": no selection
""enabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmodelvarComponent data source; item structure follows the current example and component contract.
[]visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthcountintRead onlySkeleton instance count or current item count, depending on the component.
Computed at runtimeitemsvarRead onlyNormalized or transformed item list.
Computed at runtimeSignals
command(string index, var item)Emitted when a command is invoked, with its value and menu item.
Methods
trigger(index, item)Invoke the specified item command, as if the item were selected.
close()Close the component panel or popup.
move(delta)Move the selected items or current selection.
open(index)Open the component panel or popup.