ep.alert()
Categories: UI
ep.alert( options )
Plugin: ep.alert
Description: Display an alert or confirm dialog.
The ep.alert()
method displays an alert or confirm dialog.
-
Encrypt objects as base64.
Code:
ep.alert({
title: 'Example',
type: 'warn',
size: 'l',
close: function( event ){
// do something on close
},
ok: function( event ){
// do something on confirm
},
cancel: function( event ){
// do something on abort
}
});
-
title
version added: 6.11.0
A title for the dialog.
Default: Notification
-
type
version added: 6.11.0
The type of the dialog, which affects the icon (warning,error,confirmation,notification).
Default: notification
-
size
version added: 6.11.0
The size the type icon (s,m,l,xl,64,128).
Default: l
-
ok
version added: 6.11.0
A method which will called on press the ok button.
-
okTitle
version added: 6.14.0
A method which will called on press the ok button.
-
cancel
version added: 6.11.0
A method which will called on press the cancel button.
-
cancelTitle
version added: 6.14.0
A method which will called on press the cancel button.
-
close
version added: 6.11.0
A method which will called if the dialog closed.