KTDialog is a Metronic's custom plugin defined in [metronic]/theme/html/[demo]/src/js/components/base/dialog.js.
KTDialog is a Metronic's custom plugin defined in [metronic]/theme/html/[demo]/src/js/components/base/dialog.js.
Pass options into the plugin for initialization.
var loading = new KTDialog({
  'type': 'loader',
  'placement': 'top center',
  'message': 'Loading ...'
});var options = {
  'placement' : 'top center',
  'type'  : 'loader',
  'width' : 100,
  'state' : 'default',
  'message' : 'Loading...'
}; | Field | Type | Description | ||
|---|---|---|---|---|
| placement | string | The place where the dialog be placed. 
 | ||
| type | string | Type of the dialog 
 | ||
| width | string | Set the dialog width 
 | ||
| state | string | Set the dialog state 
 | ||
| message | string | Set the dialog message. 
 | 
| Method | Description | 
|---|---|
| one(name, handler) | Attach event that will be fired once @returns {KTToggle} |