Skip to content

abhilashasokan/htmlalert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html Alert Plugin for jQuery

Show application messages as HTML alert

Requirements

Usage

$('.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.

Options

  • 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

Help

Submit a GitHub Issues request.


This software is made available under the open source MIT License. © 2016 Abhilash Asokan and contributors

About

Show application messages as HTML alert

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published