bootstrap-confirm
bootstrap ui confirmation dialog
Last updated 7 years ago by shtylman .
MIT · Original npm · Tarball · package.json
$ cnpm install bootstrap-confirm 
SYNC missed versions from official npm registry.

boostrap-confirm

confirmation dialog using bootstap modal css classes

example

var confirm = require('bootstrap-confirm');

confirm('Are you sure', function(confirmed) {
    console.log('user confirmed: %s', confirmed);
});

api

confirm(message, [options,] cb)

Show a confirmation dialog with the given message String. When the user closes (accept or cancel) the callback is called with a single boolean argument confirmed.

Confirmed will be true if the user accepted (clicked ok) or false if rejected (clicked cancel or closed the dialog)

Options

  • ok String message on ok button (default is 'ok')

tests

Manually test using the beefy npm module.

$ cd tests
$ beefy . app.js

Current Tags

  • 0.0.0                                ...           latest (7 years ago)

1 Versions

  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |