.uiSimpledialog()
Categories: UI
ep.uiSimpledialog(options)
Subclass: ep
Inherit: (Subclass: ep) .widget()
Plugin: ep.ui.simpledialog
Description: Create a simple dialog with some content and maybe even buttons
-
ep.uiSimpledialog(options)
version added: 6.15.0options A map of additional options pass to the method.
The ep.uiSimpledialog()
creates a simple dialog with a close button. This dialog also closes automatically, when a click occurs outside the dialog.
-
Create a simple dialog with some content and a button with a callback function.
HTML:
<button id="ep-edit">Edit</button>
Code:
ep('#ep-edit').uiSimpledialog({ content : $('<div>Some content.</div>'), buttons : [{ text : 'test', callback : function () { alert('The "test" button was clicked!'); } }] });
-
open
version added: 6.15.0This event is triggered when the dialog opens.
-
close
version added: 6.15.0This event is triggered when the dialog closes.
-
close
-
.uiSimpledialog( 'close' )
version added: 6.15.0
Close the dialog.
-
-
open
-
.uiSimpledialog( 'open' )
version added: 6.15.0
Open the dialog.
-
-
destroy
-
.uiSimpledialog( 'destroy' )
version added: 6.15.0
Removes the dialog functionality completely. This will return the element back to its pre-init state
-