@minecraft/server-editor
    Preparing search index...

    Interface IPropertyItemOptionsBoolBeta

    interface IPropertyItemOptionsBool {
        displayAsToggleSwitch?: boolean;
        enable?: boolean;
        onChange?: OnChangeCallback<PropertyBag, string>;
        title?: string;
        visible?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    displayAsToggleSwitch?: boolean

    controls appearance of the boolean. checkbox or toggleswitch

    enable?: boolean

    If the item is enabled in the UI.

    onChange?: OnChangeCallback<PropertyBag, string>

    Callback to execute when the value is updated.

    title?: string

    Localized title of the property item

    visible?: boolean

    If the item should be visible in the UI.