Blockbench Reference Docs
    Preparing search index...
    interface MessageBoxOptions {
        buttons?: string[];
        cancel?: number;
        cancelIndex?: number;
        checkboxes?: Record<string, MessageBoxCheckbox>;
        commands?: Record<string, MessageBoxCommandOptions>;
        confirm?: number;
        confirmIndex?: number;
        icon?: string;
        message?: string;
        title?: string;
        translateKey?: string;
        width?: number;
    }
    Index

    Properties

    buttons?: string[]
    cancel?: number

    Index of the cancel button within the buttons array

    cancelIndex?: number
    checkboxes?: Record<string, MessageBoxCheckbox>

    Adds checkboxes to the bottom of the message box

    commands?: Record<string, MessageBoxCommandOptions>

    Display a list of actions to do in the dialog. When clicked, the message box closes with the string ID of the command as first argument.

    confirm?: number

    Index of the confirm button within the buttons array

    confirmIndex?: number
    icon?: string
    message?: string
    title?: string
    translateKey?: string
    width?: number