Metronic Documentation | Keenthemes
logo
The World’s #1 Bootstrap 5 HTML, VueJS, React, Angular & Laravel
Admin Dashboard Ecosystem

This is Metronic 7 documentation!

Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel foundation with a solid light and dark mode design system, extensive utility classes and custom made in-house components.
View Metronic 8 documentation

To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/

Dialog

Overview

KTDialog is a Metronic's custom plugin defined in [metronic]/theme/html/[demo]/src/js/components/base/dialog.js.

Initialization

Pass options into the plugin for initialization.

var loading = new KTDialog({
  'type': 'loader',
  'placement': 'top center',
  'message': 'Loading ...'
});

Options

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.

Sample
'placement' : 'top center'
type string

Type of the dialog

Sample
type: 'loader'
width string

Set the dialog width

Sample
'width' : 100
state string

Set the dialog state

Sample
'state' : 'default'
message string

Set the dialog message.

Sample
'message' : 'Loading...'

API Methods

Method Description
one(name, handler)

Attach event that will be fired once @returns {KTToggle}

Think About The Future, Stay Connected With Us
The More We Learn, The More We Are Able To Innovate & To Develop