import{_ as t,a,b as s,ag as i}from"./chunks/framework.BcrMLAmg.js";const c=JSON.parse('{"title":"Menu","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Menu.md","filePath":"references/elements/Menu.md","lastUpdated":1757844696000}'),r={name:"references/elements/Menu.md"};function n(h,e,l,o,d,u){return s(),a("div",null,e[0]||(e[0]=[i('
This is the menu class. It provides a horizontal menu bar with selectable items.Menu items are displayed in a single row and can have custom colors and callbacks.
Extends: List
| Property | Type | Default | Description |
|---|---|---|---|
| separatorColor | color | gray | The color used for separator items in the menu |
| Method | Returns | Description |
|---|---|---|
| Menu:setItems | Menu | Sets the menu items and calculates total width |
Sets the menu items
items table [] List of items with {text, separator, callback, foreground, background} propertiesMenu self The Menu instancemenu:setItems({{text="File"}, {separator=true}, {text="Edit"}})