Blockbench Reference Docs
    Preparing search index...

    Interface ToastNotificationOptions

    interface ToastNotificationOptions {
        click?: (event: Event) => boolean;
        color?: string;
        expire?: number;
        icon?: string;
        text: string;
    }
    Index

    Properties

    click?: (event: Event) => boolean

    Method to run on click.

    Type Declaration

      • (event: Event): boolean
      • Parameters

        Returns boolean

        Return true to close toast

    color?: string

    Background color, accepts any CSS color string

    expire?: number

    Expire time in miliseconds

    icon?: string

    Blockbench icon string

    text: string

    Text message