Blockbench Reference Docs
    Preparing search index...

    Interface OutlinerToggle

    Toggle in the outliner

    interface OutlinerToggle {
        advanced_option?: boolean;
        condition?: any;
        getState?: (node: OutlinerNode) => boolean | "alt";
        icon: string;
        icon_alt?: string;
        icon_off?: string;
        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

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

    It's complicated, check the source code

    icon: string
    icon_alt?: string
    icon_off?: string
    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