@minecraft/server-editor
    Preparing search index...

    Interface IMenuPropertyItemBeta

    A property item which supports Menu properties

    interface IMenuPropertyItem {
        enable: boolean;
        id: string;
        paneId: string;
        typeName: PropertyItemType;
        visible: boolean;
        addEntry(
            props: IMenuCreationParams,
            action?: RegisteredAction<NoArgsAction>,
        ): IMenu;
        getEntries(): IMenu[];
        getMenu(menuId: string): undefined | IMenu;
        removeEntry(menuId: string): void;
        setTitle(title: undefined | LocalizedString): void;
        setTooltip(tooltip: undefined | BasicTooltipContent): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    enable: boolean

    If the item is enabled in the UI.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    The type name of the target property.

    visible: boolean

    If the item should be visible in the UI.

    Methods

    • Beta

      Returns IMenu[]

      All first level menu entries

    • Beta

      Parameters

      • menuId: string

        Identifier of the menu.

      Returns undefined | IMenu

      Find the menu item recursively if it exists

    • Beta

      Parameters

      • menuId: string

        Menu id to remove

      Returns void

      Removed the menu item entry if the id is found

    • Beta

      Parameters

      Returns void

      Updates title of the property item.

    • Beta

      Parameters

      Returns void

      Updates tooltip description of property item.