Skip to content
Inline popover prompts
JavaScript CSS
Find file
Latest commit a8e6be5 Aug 21, 2013 @tj tj Merge pull request #1 from repoify/add/repository
Add repository field to readme
Failed to load latest commit information.
test Initial commit Jan 9, 2013
.gitignore Initial commit Jan 10, 2013
.npmignore Initial commit Jan 10, 2013
History.md Initial commit Jan 10, 2013
Makefile Initial commit Jan 10, 2013
Readme.md Initial commit Jan 10, 2013
component.json Initial commit Jan 10, 2013
index.js Initial commit Jan 10, 2013
package.json add repository field to readme Aug 21, 2013
popover.css Initial commit Jan 10, 2013
template.html Initial commit Jan 10, 2013
template.js Initial commit Jan 10, 2013

Readme.md

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

Something went wrong with that request. Please try again.