Alerts

Details of the VendorFuel API Alerts service.

Properties

list

Contains array of alert objects, each containing a message and type.

[
{type: 'info', msg: 'This is an info alert.'},
{type: 'success', msg: 'This is an success alert.'}
]

Methods

error(msg)

Adds an error-type message to Alerts.list.

Alerts.error('This is an error message');

Param

Type

Details

msg

string

Message to be added to Alerts.list.

warning(msg)

Adds a warning-type message to Alerts.list.

Alerts.warning('This is a warning message');

Param

Type

Details

msg

string

Message to be added to Alerts.list.

info(msg)

Adds an info-type message to Alerts.list.

Alerts.info('This is an info message');

Param

Type

Details

msg

string

Message to be added to Alerts.list.

success(msg)

Adds an success-type message to Alerts.list.

Alerts.success('This is a success message');

Param

Type

Details

msg

string

Message to be added to Alerts.list.