Blockbench Reference Docs
    Preparing search index...

    Interface ShapelessDialogOptions

    interface ShapelessDialogOptions {
        cancel_on_click_outside?: boolean;
        cancelIndex?: number;
        component?: Component;
        confirmIndex?: number;
        title: string;
        onCancel?(): void;
        onClose?(button_index: number, event?: Event): void;
        onConfirm?(formResult: any): void;
    }
    Index

    Properties

    cancel_on_click_outside?: boolean

    Unless set to false, clicking on the darkened area outside of the dialog will cancel the dialog.

    cancelIndex?: number

    Default button to press to cancel the dialog. Defaults to the last button.

    component?: Component

    Vue component

    confirmIndex?: number

    Default button to press to confirm the dialog. Defaults to the first button.

    title: string

    Methods

    • Function to execute when the user cancels the dialog

      Returns void

    • Triggered when the user presses a specific button

      Parameters

      • button_index: number
      • Optionalevent: Event

      Returns void

    • Function to execute when the user confirms the dialog

      Parameters

      • formResult: any

      Returns void