@minecraft
    正在准备搜索索引...

    接口 IMenuPropertyItem

    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): IMenu;
        removeEntry(menuId: string): void;
        setTitle(title: LocalizedString): void;
        setTooltip(tooltip: BasicTooltipContent): void;
    }

    层级 (查看层级一览)

    索引

    属性

    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.

    方法

    • 参数

      • menuId: string

        Menu id to remove

      返回 void

      Removed the menu item entry if the id is found