ui/dialog
ui/dialog.baseAttribute
Base attribute for a dialog
Kind: static constant of ui/dialog
ui/dialog.initializer
Dialog Component Initializer
Kind: static constant of ui/dialog
ui/dialog.closeAttribute
Attribute for close buttons within a dialog
Kind: static constant of ui/dialog
ui/dialog.defaults
Dialog Defaults
- Can be overridden using data-attributes
Kind: static constant of ui/dialog
ui/dialog.setDefaults(options)
Kind: static method of ui/dialog
Param | Type | Description |
---|---|---|
options | Object |
Change options used as default for dialogs, can then be overridden by data attribute settings on element |
ui/dialog.init()
Initialize everything in document
- This will only initialize elements once, it is safe to call on page changes
Kind: static method of ui/dialog
ui/dialog.setupTrigger(trigger, dialogId)
Setup click handlers on a trigger
Kind: static method of ui/dialog
Param | Type | Description |
---|---|---|
trigger | Node |
Trigger button element |
dialogId | String |
The dialog's id to open |
ui/dialog.setupDialog(dialog)
Setup click handlers for a dialog
Kind: static method of ui/dialog
Param | Type |
---|---|
dialog | Node |
ui/dialog.getDialogOptions(dialog) ⇒ Object
For a given dialog, get it's options (from data attribute)
Kind: static method of ui/dialog
Param | Type |
---|---|
dialog | Node |
ui/dialog~prepVideos()
Pause native and youtube videos for a given dialog
Kind: inner method of ui/dialog
ui/dialog~pauseVideos()
Prep videos to be paused for a given dialog
Kind: inner method of ui/dialog