Popover confirmation component built on top of Popover.
$ npm install confirmation-popover-component
showthe confirmation is shown
hidethe confirmation is hidden
cancelthe user closed the confirmation or cancelled
okthe user accepted
Create a new popover with
msg and optional
var Confirmation = ;var confirm = 'This action cannot be undone.' 'Delete tobi?';confirm;
By default the "cancel" button is focused, however you
Set cancel button
Set cancel ok
el, and invoke
a boolean representing the user's choice.
fn is omitted you may still utilize the