Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Confirmation Popover for inline confirmations
JavaScript CSS
branch: master
Failed to load latest commit information.
test remove jquery dependency
.gitignore refactor for latest component(1)
.npmignore Initial commit
Makefile stop using component-convert add live demo links
component.json Release 1.0.1
index.js stop using component-convert
package.json Release 1.0.1
popover.css Initial commit
template.html refactor for latest component(1)

Confirmation Popover

Popover confirmation component built on top of Popover.

js popover confirmation component

Live demo is here.


$ component install component/confirmation-popover


  • all the features of Popover / Tip


  • show the confirmation is shown
  • hide the confirmation is hidden
  • cancel the user closed the confirmation or cancelled
  • ok the user accepted


new ConfirmationPopover(msg, [title])

Create a new popover with msg and optional title.

var Confirmation = require('confirmation-popover');
var confirm = new Confirmation('This action cannot be undone.', 'Delete tobi?');;


By default the "cancel" button is focused, however you may invoke .focus('ok').


Set cancel button text.


Set cancel ok text.

.show(el, [fn])

Attach to el, and invoke fn with a boolean representing the user's choice.

When fn is omitted you may still utilize the cancel / ok events.


View Tip and Popover for additional API documentation.



Something went wrong with that request. Please try again.