Variable utilsConst

utils: {
    closeResource: string;
    errorImage: string;
    errorResource: string;
} = ...

A singleton class that provides cross-browser helper methods. This is a global functionality. To access the functions in this class, use the global classname appended by the functionname. You may have to load chrome://global/content/contentAreaUtils.js to disable certain security restrictions in Mozilla for the , , and function.

For example, the following code displays an error message:

mxUtils.error('Browser is not supported!', 200, false);

Type declaration

  • closeResource: string

    Specifies the resource key for the label of the close button. If the resource for this key does not exist then the value is used as the label. Default is 'close'.

  • errorImage: string

    Defines the image used for error dialogs.

  • errorResource: string