Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bfontaine/historize
jQuery plugin which allows you to keep an history on an input and a tab-completion system, like in a shell.
https://github.com/bfontaine/historize
history input jquery
Last synced: about 1 month ago
JSON representation
jQuery plugin which allows you to keep an history on an input and a tab-completion system, like in a shell.
- Host: GitHub
- URL: https://github.com/bfontaine/historize
- Owner: bfontaine
- License: mit
- Created: 2012-12-17T00:07:45.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-25T19:49:23.000Z (over 11 years ago)
- Last Synced: 2024-12-08T21:03:18.714Z (about 1 month ago)
- Topics: history, input, jquery
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Historize
=========Historize is a jQuery plugin which allows you to keep an history on an input and
a tab-completion system, like in a shell.Usage
-----```js
$('#my-input').historize( options );
````options` is an optional object, providing the following optional keys:
* `target`: A function which is called on the input when the user press `Enter`.
By default, it triggers an 'enter' event and delete the content of the input.
* `complete`: A list of words that should be used for tab-completion, **or**
a function which gets the input’s value and return a string which will replace
the current word in the input. If the function has a second argument, it will
be used as a callback.
* `keys`: An object which can be used to redefine the default keys (`enter` is
the key number of the `Enter` key, `completion` is the key number of the `tab`
key, `up` and `down` are used to browse the history)