Skip to content

Commit acf84a7

Browse files
Update docs setMenubar (#2845)
1 parent d55c3c1 commit acf84a7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/docs/src/UI/setMenubar.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ puter.ui.setMenubar(options)
1616

1717
#### `options.items` (Array)
1818

19-
An array of menu items. Each item can be a menu or a menu item. Each menu item can have a label, an action, and a submenu.
19+
An array of menu items. Each item can be a menu or a menu item. Each menu item can have a label, an action, and a submenu. An item can also be the string `-`, which indicates a separator.
2020

2121
#### `options.items.label` (String)
2222

@@ -30,6 +30,10 @@ A function to execute when the menu item is clicked.
3030

3131
An array of submenu items.
3232

33+
#### `options.items.disabled` (Boolean)
34+
35+
Indicates whether the menu item is disabled.
36+
3337
## Examples
3438

3539
```html;ui-set-menubar
@@ -72,4 +76,4 @@ An array of submenu items.
7276
</script>
7377
</body>
7478
</html>
75-
```
79+
```

0 commit comments

Comments
 (0)