Blockbench Reference Docs
    Preparing search index...
    interface BarSelectOptions {
        category?: string;
        color?: string;
        condition?: ConditionResolvable;
        description?: string;
        icon?: string | (() => string);
        icon_mode?: boolean;
        id?: string;
        keybind?: Keybind;
        min_width?: number;
        name?: string;
        options: Record<string, BarSelectPropertyFormat>;
        plugin?: string;
        private?: true;
        sub_keybinds?: { [key: string]: Keybind };
        value?: string;
        variations?: { [key: string]: { description?: string; name: string } };
        width?: number;
        work_in_dialog?: boolean;
        onChange?(self: BarSelect, event?: Event): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    category?: string
    color?: string
    description?: string
    icon?: string | (() => string)
    icon_mode?: boolean
    id?: string
    keybind?: Keybind
    min_width?: number
    name?: string
    options: Record<string, BarSelectPropertyFormat>
    plugin?: string

    The plugin that this was added by

    private?: true

    If set to true, the item can only be used in private context and does not appear in keybindings, action control, or toolbar customization

    sub_keybinds?: { [key: string]: Keybind }
    value?: string
    variations?: { [key: string]: { description?: string; name: string } }
    width?: number
    work_in_dialog?: boolean

    Methods

    • Parameters

      Returns void