For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/interfaces/IMenuContainer.md.

Interface: IMenuContainer experimental

inventory

Beta

Manager and container for IMenu objects

Methods

createMenu()

createMenu(props): IMenu

Beta

Parameters

props

IMenuCreationParams

Configuration for the menu to create

Returns

IMenu

Remarks

Create a top level item in the container.


getMenu()

getMenu(id): Promise<IMenu>

Beta

Parameters

id

string

Menu identifier

Returns

Promise<IMenu>

Remarks

Search for a menu item, if it's not found defer it to next tick.

同领域相关