Prompt Popover
Popover prompt component built on top of Popover.
Installation
$ component install component/prompt-popover
Features
- all the features of Popover / Tip
Events
show
the prompt is shownhide
the prompt is hiddencancel
the user closed the prompt or cancelledok
the user accepted
API
new Prompt([placeholder])
Create a new popover with optional input placeholder
text.
var Prompt = ;var prompt = 'Password';var el = ;prompt;
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