Skip to content

alhugone/riot-bootstrap4-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

riot bootstrap v4 alpha alert tag

Riot.js custom tag that shows bootstrap v4 alpha alerts.

Live example

https://alhugone.github.io/riot-bootstrap4-alert/

Code example

Place <alerts> tag:

<alerts name="alerts"></alerts>

Add alert in JavaScript:

this.tags.alerts.addAlert(
    { type: 'success',
      msg: 'This is message',
      hideAfter: 0,
      fadeOutTime: 1000,
      dismissible: true }
);

Features

Each alert can be customized with:

  • success/info/warn/error type
  • stay for ever or close after specified seconds
  • dissmissable/non-dissmisable
  • fadeOut custom time or 'slow'(jQuery) default

Install

npm install

Run tests

npm test

About

Riot.js custom tag that shows bootstrap 4 alerts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published