Button

Visual

image-button
image-button

A normal button, styled to match the dizmo theme.

Data type

<button id="my-button" data-type="dizmo-button">Done</button>

For an image button, simply replace the text with an image element:

<button id="my-button" data-type="dizmo-button"><img src="icon-back-svg"></button>

Constraints

Only works on button elements.

Usage

Manual initialization:

DizmoElements('#my-button').dbutton();

To react to clicks on a button:

DizmoElements('#my-button').on('click',function(){
    //do something when the button is clicked
});