Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

DEPRECATED Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Notifications You must be signed in to change notification settings

PracticallyGreen/jquery-tokeninput

 
 

Repository files navigation

jQuery Tokeninput: A Tokenizing Autocomplete Text Entry

Overview

Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Documentation, Features and Demos

Full details and documentation can be found on the project page here:

http://loopj.com/jquery-tokeninput/

Custom WeSpire Functions

onBeforeAdd

Similar to the onAdd function, but runs at the very beginning of the add_token method.

Example Usage:

javascripts/components/file.js.coffee

$(‘.js-some-input’).tokenInput AppRoutes.some_path({foo: bar}),
  onBeforeAdd: ( item ) ->
    # When false is returned the entire `add_token` method is halted — the token is not added and the dropdown is not dismissed.
    if item.is_disabled
      return false

About

DEPRECATED Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.5%
  • HTML 32.2%
  • CSS 10.3%