Nautilus: Pelagic Mollusc
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

bootstrip-alert

0.0.1 • Public • Published

bootstrip-alert

Twitter bootstrap alert without jQuery

All credit goes to the devs of bootstrap as this is heavily based on the alert plugin from it

Install

$ npm install --save bootstrip-alert

Tests

$ npm test

Example

var Alert = require('bootstrip-alert')
var $ = require('dom')
var ele = $('.alert')
var alert = new Alert(ele)
 
alert.on('close.bs.alert', function() {
  console.log('closing...')
})
 
alert.on('closed.bs.alert', function() {
  console.log('closed')
})
 

TODO

  • Allow for transition support
  • Implement using data api

License MIT

Licensed under the MIT License. For more info, see LICENSE

install

npm i bootstrip-alert

Downloadsweekly downloads

2

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar