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: 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
-
size
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.