Socket
Book a DemoInstallSign in
Socket

prompt-popover

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

prompt-popover

Popover prompt component

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Prompt Popover

Popover prompt component built on top of Popover.

js popover prompt component

Installation

$ component install component/prompt-popover

Features

  • all the features of Popover / Tip

Events

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

API

new Prompt([placeholder])

Create a new popover with optional input placeholder text.

var Prompt = require('prompt-popover');
var prompt = new Prompt('Password');
var el = $('#change-password').get(0);
prompt.show(el);

Prompt#cancel(text)

Set cancel button text.

Prompt#ok(text)

Set cancel ok text.

Prompt#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

prompt

FAQs

Package last updated on 10 Jan 2013

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