Socket
Book a DemoInstallSign in
Socket

bootstrap-confirm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-confirm

bootstrap ui confirmation dialog

latest
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 13 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts