Class: AXNotification

AXNotification

new AXNotification()

AXNotification

Version:
  • v1.7
Author:
  • tom@axisj.com

Extends

Methods

staticAXNotification.push(content)

notification은 dialog, toast 2가지 형태가 존재하고 각각 push 메소드를 이용하여 출력한다.

Name Type Description
content Object | String

대상물 문자열 혹은 오브젝트로 구성

Example
 //toast
 toast.push('<b>Complete</b>\n Complete messange send !!');
 toast.push({body:'<b>Warning</b> Warning messange send !!', type:'Warning'});
 toast.push({body:'<b>Caution</b> Caution messange send !!', type:'Caution'});

 //dialog
 dialog.push('<b>Alert</b>\n Application Call dialog push');
 dialog.push({body:'<b>Warning</b> Application Call dialog push', type:'Warning'});
 dialog.push({body:'<b>Caution</b> Application Call dialog push', type:'Caution', onConfirm:fnObj.btnOnConfirm, data:'onConfirmData'});
 dialog.push({
    body:'<b>Caution</b> Application Call dialog push', top:0, type:'Caution', buttons:[
        {buttonValue:'button1', buttonClass:'Red W100', onClick:fnObj.btnClick, data:'data1'},
        {buttonValue:'button2', buttonClass:'Blue', onClick:fnObj.btnClick, data:'data2'},
        {buttonValue:'button3', buttonClass:'Green', onClick:fnObj.btnClick, data:'data3'}
    ]
 });