2.0.0 • Published 9 years ago

predicty v2.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

predicty

A super light-weight auto-complete component.

Desgined to be easily inherited from and extended.

usage

Quick example:

npm install predicty
var Predicty = require('predicty');

var autocomplete = new Predicty();

autocomplete.items(['abc','def','hij']);

autocomplete.value('a');

API:

.value(newValue)

call without arguments to get the value, call with a value to set it.

.items(newItems)

call without arguments to get the items, call with an array to set it.

Events

'value' Emitted whenever the value changes, passes value to the handler

'items' Emitted whenever the items change, passes items to the handler

'accept' Emitted whenever a suggestion is accepted, passes the suggestion to the handler

2.0.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago