node package manager


Popover prompt component

Prompt Popover

Popover prompt component built on top of Popover.

$ component install component/prompt-popover
  • all the features of Popover / Tip
  • show the prompt is shown
  • hide the prompt is hidden
  • cancel the user closed the prompt or cancelled
  • ok the user accepted

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);;

Set cancel button text.

Set cancel ok text.

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.