Blockbench Reference Docs
    Preparing search index...

    Interface OutlinerToggle

    Toggle in the outliner

    interface OutlinerToggle {
        advanced_option?: boolean;
        condition?: ConditionResolvable;
        getState?: (node: OutlinerNode) => boolean | "alt";
        icon: IconString;
        icon_alt?: IconString;
        icon_off?: IconString;
        id: string;
        title: string;
        visibilityException?: (node: OutlinerNode) => boolean;
    }
    Index

    Properties

    advanced_option?: boolean

    If true, the toggle will only be visible when "Toggle More Options" is enabled

    getState?: (node: OutlinerNode) => boolean | "alt"

    It's complicated, check the source code

    icon_alt?: IconString
    icon_off?: IconString
    id: string
    title: string
    visibilityException?: (node: OutlinerNode) => boolean

    Override the visibility and still show the toggle under certain conditions, even if more options are disabled