Socket
Book a DemoInstallSign in
Socket

code42day-confirmation-popover

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code42day-confirmation-popover

Popover component with OK/Cancel buttons

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Confirmation Popover

Popover confirmation component built on top of Popover.

js popover confirmation component

Live demo is here.

Installation

$ component install component/confirmation-popover

Features

  • all the features of Popover / Tip

Events

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

API

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?');
confirm.show(el);

.focus(type)

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

.cancel(text)

Set cancel button text.

.ok(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.

License

MIT

Keywords

confirmation

FAQs

Package last updated on 18 Sep 2015

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.