| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value that will be passed to the Contents shards of the menu bar. |
|
Any |
Output ➡️ |
|
A boolean value indicating whether the menu bar is active. |
|
Bool |
Contents |
No |
The UI contents. |
none |
NoneShard[Shard] |
The menu bar goes well in a UI.TopPanel.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | @wire(ui-wire {
UI.Window(
Title: "UI MenuBar"
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 700
Height: 400
Contents: {
UI.TopPanel(
Contents: {
UI.TopPanel(
Contents:
UI.MenuBar(
Contents:
UI.Menu(
"Menu"
{"Some Text" | UI.Label}
)
)
)
}
)
}
)
} Looped: true)
{ui-behavior: ui-wire}
|