ep.alert()
Categories: UI
ep.alert( options )
Plugin: ep.alert
Description: Display an alert or confirm dialog.
The ep.base64Encode()
method encrypts objects to base64 string, is support not only strings,
because it converts the object to an json string before encrypt base64.
-
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: 1.4.4.0
A title for the dialog.
Default: Notification
-
type
version added: 1.4.4.0
The type of the dialog, which affects the icon.
Default: notify
-
type
version added: 1.4.4.0
The size the type icon (s,m,l,xl,64,128).
Default: xl
-
ok
version added: 1.4.4.0
A method which will called on press the ok button.
-
cancel
version added: 1.4.4.0
A method which will called on press the cancel button.
-
close
version added: 1.4.4.0
A method which will called if the dialog closed.