To create a success alert message, add the .alert-success
class to the .alert
.
To create an info alert message, add the .alert-info
class to the .alert
.
To create a warning alert message, add the .alert-warning
class to the .alert
.
To create a danger alert message, add the .alert-danger
class to the .alert
.
To create a dark alert, use the .alert-dark
class with the .alert-*
class.
To add dismiss functionality to all alert messages, you need to require the alert plugin:
require(['px-bootstrap/alert']);
To use alerts, you need to include ui-bootstrap.js script:
<script src="path/to/js/ui-bootstrap.js"></script>