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('

Menu

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

Properties

PropertyTypeDefaultDescription
separatorColorcolorgrayThe color used for separator items in the menu

Functions

MethodReturnsDescription
Menu:setItemsMenuSets the menu items and calculates total width

Sets the menu items

Parameters

Returns

Usage

lua
menu:setItems({{text="File"}, {separator=true}, {text="Edit"}})
',15)]))}const m=t(r,[["render",n]]);export{c as __pageData,m as default};