HybridForms API
    Preparing search index...

    Class Messages

    The messages class displays messages of different types (info, error) to the user.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Displays a confirm message.

      Parameters

      • message: string

        The message body.

      • Optionaltitle: string

        The title of the message.

      • OptionalprimaryCommand: string

        The label of the confirm button.

      • OptionalsecondaryCommand: string

        The label of the cancel button.

      Returns Promise<{ id: "cancel" | "confirm" }>

    • Displays an error message.

      Parameters

      • msg: string

        The message body.

      • Optionaltitle: string

        [optional] the title of the message; if not provided, the title gets the default value "error" (in the current language).

      Returns Promise<void>

    • Displays an info message.

      Parameters

      • msg: string

        The message body.

      • Optionaltitle: string

        [optional] the title of the message; if not provided, the title gets the default value "info" (in the current language).

      Returns Promise<void>