alert

AbstractItem.alert(mess, options)
Domain:

client

Language:

javascript

Class:

AbstractItem()

Description

Use the alert method to create a pop-up message in the upper-right corner application that disappears after the first click on the page.

Parameters

Parameter

Type

Description

message

string

Specifies the text that will be displayed.

option

object

An object with the following attributes:

Attribute

Description

type

Indicates the type of the message — its font, background color and header text, if not specified in the header parameter.

Must be one of the following:

  • 'info'

  • 'error'

  • 'success'

Default: 'info'.

header

string

Specifies the header of the alert.

pulsate

boolean

If true, the header will pulsate. Default: true.

show_header

boolean

If false, the header will not be displayed.

The methods alert_error and alert_success are the same as alert with the corresponding type options.

Example

item.alert_error('Failed to send the mail: ' + err);
item.alert('Successfully sent the mail');