Reference Source
public class | source

Notification

Notification class

Example:

var notification = KQ.Control.Notification.getInstance();
notification.showSuccess('success!');
notification.showInfo('info!');
notification.showError('error!');

Static Method Summary

Static Public Methods
public static

Get instance of notification

Constructor Summary

Public Constructor
public

constructor(option: Object)

Constructor

Method Summary

Public Methods
public

showError(msg: String, delay: Number): Null

Show message with error style

public

showInfo(msg: String, delay: Number): Null

Show message with info style

public

showSuccess(msg: String, delay: Number): Null

Show message with success style

Static Public Methods

public static getInstance(): Notification source

Get instance of notification

Return:

Notification

Public Constructors

public constructor(option: Object) source

Constructor

Params:

NameTypeAttributeDescription
option Object

setting option

option.right Number

margin to browser right side

option.bottom Number

margin to browser bottom side

Public Methods

public showError(msg: String, delay: Number): Null source

Show message with error style

Params:

NameTypeAttributeDescription
msg String

message

delay Number

showing message after the delay time(ms)

Return:

Null

public showInfo(msg: String, delay: Number): Null source

Show message with info style

Params:

NameTypeAttributeDescription
msg String

message

delay Number

showing message after the delay time(ms)

Return:

Null

public showSuccess(msg: String, delay: Number): Null source

Show message with success style

Params:

NameTypeAttributeDescription
msg String

message

delay Number

showing message after the delay time(ms)

Return:

Null