Update docs setMenubar (#2845)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled

This commit is contained in:
Reynaldi Chernando
2026-04-27 12:51:08 +07:00
committed by GitHub
parent d55c3c1637
commit acf84a7929
+6 -2
View File
@@ -16,7 +16,7 @@ puter.ui.setMenubar(options)
#### `options.items` (Array)
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 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.
#### `options.items.label` (String)
@@ -30,6 +30,10 @@ A function to execute when the menu item is clicked.
An array of submenu items.
#### `options.items.disabled` (Boolean)
Indicates whether the menu item is disabled.
## Examples
```html;ui-set-menubar
@@ -72,4 +76,4 @@ An array of submenu items.
</script>
</body>
</html>
```
```