@maxgraph/core
    Preparing search index...

    Function error

    • Displays the given error message in a new of the given width. If close is true then an additional close button is added to the window. The optional icon specifies the icon to be used for the window. Default is Utils#errorImage.

      Parameters

      • message: string

        String specifying the message to be displayed.

      • width: number

        Integer specifying the width of the window.

      • close: boolean

        Optional boolean indicating whether to add a close button.

      • icon: null | string = null

        Optional icon for the window decoration.

      Returns MaxWindow