alertIndicator

(esrith/amos/core/alertIndicator)

Class for displaying notification box or confirmation box with optional customized controls in box's buttons functionalities.

Description
defaultOption

DefaultOption of alertIndicator contains 6 values.
1.title: title of dialog (default: "Tin nhắn hệ thống")
2.maxable: allow or not maximize button is displayed. (default: false)
3.minable: allow or not minimize button is displayed. (default: false)
4.iconClass: class of icon (default: None)
5.okLabel: label of 'ok' botton (default: "OK")
6.cancelLabel: label of 'cancel' botton (default: "Hủy bỏ")

Return type Description
alert(messageonOkClickoptions) None

Displays an notification box with a specified message and an OK button.

confirm(messageonOkClickonCancelClickoptions) None

Displays an confirm box with a specified message ,an OK button and cancel button.

constants Detail
<Object>
defaultOption

DefaultOption of alertIndicator contains 6 values.
1.title: title of dialog (default: "Tin nhắn hệ thống")
2.maxable: allow or not maximize button is displayed. (default: false)
3.minable: allow or not minimize button is displayed. (default: false)
4.iconClass: class of icon (default: None)
5.okLabel: label of 'ok' botton (default: "OK")
6.cancelLabel: label of 'cancel' botton (default: "Hủy bỏ")

Methods Detail
alert
(
  • message
  • onOkClick
  • options
)

Displays an notification box with a specified message and an OK button.

Parameters
  • <String> message Required

    -message of dialog

  • <Function> onOkClick Required

    -event when click OK button

  • <Object> options Required

    -option of alertIndicator

confirm
(
  • message
  • onOkClick
  • onCancelClick
  • options
)

Displays an confirm box with a specified message ,an OK button and cancel button.

Parameters
  • <String> message Required

    -message of dialog

  • <Function> onOkClick Required

    -event when click OK button

  • <Function> onCancelClick Required

    -event when click CANCEL button

  • <Object> options Required

    -option of alertIndicator