- jQuery (>= 1.7)
$('.some-time-inputs').htmlAlert(options);
Include bootstrap.min.css
,jquery.min.js
and bootstrap.min.js
in your page.
options
is an optional javascript object with parameters explained below.
You can also set options as data attributes on the intput elements, like <input type="text" data-time-format="H:i:s" />
. htmlAlert still needs to be initialized by calling $('#someElement').htmlAlert();
.
The defaults for all options are exposed through the $.fn.htmlAlert.defaults
object. Properties changed in this object (same properties configurable through the constructor) will take effect for every instance created after the change.
-
headerCaption
Override default popup header text. default: "Header" -
footerCaption
Override default popup footer text. default: "Footer" -
popupText
Override default popup text. default: "Hello World!" -
buttonText
Override default button text in popup. default: "Close" -
themeName
Override default theme of popup. default: "default"Other options available (follows bootstrap stylying cues)
1. primary
2. success
3. info
4. warning
5. danger
Submit a GitHub Issues request.
This software is made available under the open source MIT License. © 2016 Abhilash Asokan and contributors