Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 464 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 464 Bytes

FlashBag

Step 1

Define a flashBag skeleton with a flashbag-skeleton id, a [type] class attribute and a [message] inside the block

<div id="flashbag-skeleton" class="alert alert-%type%">%message%
    <a class="close" data-dismiss="alert" href="#">&times; }}</a>
</div>

Step 2

Just call $.FlashBag.add(type, message, options)

$(document).ready(function() {
    $.FlashBag.add('success', 'My message', {autoclose: true});
});