0.1.2 • Published 4 years ago

bootsalert v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

BootsAlert

Simple library to create alert from Bootstrap Framework.

dependencies Status npm version

Compatibility

This library is compatible with bootstrap 3 and 4 alert.

How to Use

This code below shows you an example about how to use this library:

...
<body>
    <div id="demo"></div>
</body>
<script>
    bootsalert({
        className: "success",
        message: "be success",
        container: "demo",
        closebtn: true
    });
</script>

There's several variable that must be filled and should be filled to make this library can work perfectly:

variabletypeconditiondefaultcontent
classNamestringrequiredemptyclass name of alert provide by bootstrap. you can use success or other type or your own custom type
messagestringrequiredemptyyour message to user after doing something
containerstringrequiredemptyalert will be inserted to this component. Selected component must have id attributes
closebtnbooleanoptionalfalsespecify that alert will have close button or not.
appendbooleanoptionaltruebootsalert can be appended with several alert elements in one container
0.1.2

4 years ago

0.1.0

6 years ago