Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
overlay
: whether or not the popup is an overlayInitializer function.
Add aria attributes
Attach evenets to the widget
Close the dialog
Center the dialog on the page
Force redraw
Find the widget structure using the specified configuration
Find the close button, specified using the data-role="close"
attribute,
or auto-generated
Find the dialog header, specified using the aria-labelledby
attribute
or falling back to the header
child
or falling back to the 1st child when there are 2 or more
Find the dialog content, specified using the aria-describedby
attribute
or falling back to the 2nd child when there are 2 or more
or falling back to the 1st child when there is only 1
Find the dialog header, specified using the footer
child
or falling back to the last child when there are 3 or more
Create elements required by the structure if they are not present
Handle escape key press
Handle enter key press
Handle tab key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Dialog
The
Dialog
class provides a simple dialog widget.author: Julien Ramboz version: 1.0 usage: Dialog examples