Blockbench Reference Docs
    Preparing search index...

    Interface CustomMenuItem

    interface CustomMenuItem {
        children?: MenuItem[] | ((context: any) => MenuItem[]);
        color?: string;
        condition?: any;
        description?: string;
        icon: string | boolean | ((context: any) => string | boolean);
        id?: string;
        keybind?: string | Keybind;
        name: string;
        searchable?: boolean;
        click?(context?: any, event?: Event): void;
    }
    Index

    Properties

    children?: MenuItem[] | ((context: any) => MenuItem[])
    color?: string
    condition?: any
    description?: string
    icon: string | boolean | ((context: any) => string | boolean)
    id?: string
    keybind?: string | Keybind

    Keybind or string to display in the menu, won't work as an actual keybinding by default

    name: string
    searchable?: boolean

    Adds a search bar to the menu or submenu

    Methods