okPopup
cdf.dashboard.Popups.okPopup
The Ok Popup object containing the default values for a success notification popup.
On button click, the Popup is closed.
Source: dashboard/Popups.js, line 49
Example
<div class='cdfPopup'> <div class='cdfPopupHeader'>Title</div> <div class='cdfPopupBody'> <div class='cdfPopupDesc'>Description Text</div> <div class='cdfPopupButton'>Button Text</div> </div> </div>
Members
Name | Description |
---|---|
$el : | The DOM element which holds the popup's content. |
defaults : | The Popup default properties. |
template : | The template of the Popup. |
Methods
Name | Description |
---|---|
hide() | Hides the popup. |
render(newOpts) | Renders the Popup. |
show(opts) | Shows the popup. |
Members Details
$el: |
---|
The DOM element which holds the popup's content. Source: dashboard/Popups.js, line 105 |
defaults: | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The Popup default properties, with the properties applied during the template render.
Source: dashboard/Popups.js, line 91 |
template: |
---|
The Mustache template of the Ok Popup. It has a header, a description and a button. The default values for each of the template variables are stored in Source: dashboard/Popups.js, line 74 Code<div class='cdfPopup'> <div class='cdfPopupHeader'>{{{header}}}</div> <div class='cdfPopupBody'> <div class='cdfPopupDesc'>{{{desc}}}</div> <div class='cdfPopupButton'>{{{button}}}</div> </div> </div> |
Methods Details
hide() |
---|
Hides the popup, based on the Source: dashboard/Popups.js, line 125 |
render(newOpts) | ||||||
---|---|---|---|---|---|---|
Renders the Popup based on the object containing the properties to apply to the Mustache template. When the component is rendered, it gets hidden and appended to the body. Source: dashboard/Popups.js, line 138
|
show(opts) | ||||||
---|---|---|---|---|---|---|
Shows the popup based on the If the popup is rendering for the first time or if show is called with the Source: dashboard/Popups.js, line 114
|