# Documentation v8.0.38

Preview Downloads Purchase

# Overview

Indicator is a custom component used in combination with Bootstrap Spinners, Bootstrap Spinners and other components to provide a progress indication toggling for a user action.

# Basic

Use `.indication`class on a button and specify the button's label and progress message and toggle the indicator state with `data-kt-indicator="on"`custom HTML attribute:

    <!-- Default state -->
    <button type="button" class="btn btn-primary me-10">
        <span class="indicator-label">
            Submit
        </span>
        <span class="indicator-progress">
            Please wait... <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
        </span>
    </button>

    <!-- Progress enabled state -->
    <button type="button" class="btn btn-primary" data-kt-indicator="on">
        <span class="indicator-label">
            Submit
        </span>
        <span class="indicator-progress">
            Please wait... <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
        </span>
    </button>

# Toggle

Click on the below buttons to check toggling indicator state with a simple Javascript code:

    // Element to indecate
    var button = document.querySelector("#kt_button_1");

    // Handle button click event
    button.addEventListener("click", function() {
        // Activate indicator
        button.setAttribute("data-kt-indicator", "on");

        // Disable indicator after 3 seconds
        setTimeout(function() {
            button.removeAttribute("data-kt-indicator");
        }, 3000);
    });

    <button type="button" class="btn btn-primary me-10" id="kt_button_1">
        <span class="indicator-label">
            Submit
        </span>
        <span class="indicator-progress">
            Please wait... <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
        </span>
    </button>

### Explore

### Metronic Licenses

License FAQs
Regular License
For single end product used by you or one client
$ 39
Extended License
For single SaaS app with paying users
$ 969
Custom License
Reach us for custom license offers.
Contact Us
Buy Now

### Metronic Demos

Demo 1
Demo 2
Demo 3
Demo 4
Demo 5
Demo 6
Demo 7
Demo 8
Demo 9
Demo 10
Demo 11
Demo 12
Demo 13
Demo 14
Demo 15
Demo 16
Demo 17
Demo 18
Demo 19
Demo 20
Demo 21
Demo 22
Coming soon
Coming soon

##### Learn & Get Inspired

## Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Documentation & Videos
From guides and video tutorials, to live demos and code examples to get started.
Plugins & Components
Check out our 300+ in-house components and customized 3rd-party plugins.
Layout Builder
Build your layout, preview it and export the HTML for server side integration.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New
Latest features and improvements added with our users feedback in mind.
Buy now