type: widget
release: 0.0
status: in planning
documentation: N/A
demo: N/A
1 - Description:
This widget provides a well-constrained way to let users build a list of items. Common applications include the Facebook-style list builder for message recipients (F6) which provides a textarea with an auto-complete function and the ability to re-order and delete recipients. The Apple Mail style builder (F7) adds an action menu next for each item that can be used to offering multiple actions. This should support re-ordering via drag and drop, plus keyboard shortcuts to select and delete items.
The autocompletion is optional, when enabled (default), it needs the Autocomplete as a dependency.
To disable: .listbilder({ autocomplete: false })
jQuery plug-ins:
http://plugins.jquery.com/project/facelist
http://www.emposha.com/javascript/jquerymultiselect.html
http://devthought.com/wp-content/projects/jquery/textboxlist/Demo/
Mark Gibson's plugin, built on jQuery UI. Can be used with Jorn's autocomplete (or others):
http://test3.internal.adaptavist.net/~mgibson/tokenlist/demo.html
Filament Group has a draft of the Facebook style interaction modeled here that uses progressive enhancement techniques on a textarea to ake it easy to get and set values:
<link...>
2 - Visual Design:

3 - Functional Specifications/Requirements:
(Detailed descrition of how the script will be structured: defaults, options, architecture, extensibility, etc.)
4 - Markup & Style:
4.1 Initial markup examples
(Pre-enhanced HTML markup structure that will be transformed into the final widget. There may be multiple possible HTML markup options per widget: for example, for a slider, radiobuttons, inputs or selects could all be used. )
4.2 Recommended transformed HTML markup
(The HTML markup structure and classes that will be used by the scripts in the enhanced version)
4.3 Accessibility recommendation
(Detailed recommendations for ARIA, HTML markup, CSS and javascript that will contribute to universal access and full section 508 accessibility for screen readers, mobile devices and any other devices)
4.4 CSS & Theme
(Description of the CSS classes to be used for all states, how custom theming and Themeroller support will work.)
5 - Latest version of plugin:
(Link to the latest version in the jQuery UI trunk here)
6 - Open issues being discussed
(Use this area to place things that we're hashing out like featuresand options we're not sure we should include, questions about how this fits into UI and relates to other widgets and utilities, known problems, whether features should be broken across multiple releases, etc.)
Comments (5)
Mark Gibson said
at 3:50 am on Mar 13, 2009
Ah, if I only I found this last week!
I've also developed a widget for this purpose, please find a demo here:
http://test3.internal.adaptavist.net/~mgibson/tokenlist/demo.html
It is built as a jQuery-UI widget, and is completely autocompleter agnostic - an INPUT element is exposed to which you can attach and configure your preferred autocomplete plugin. The demo uses Jörn's jquery.autocomplete.js with a small patch to allow filtering of results.
It enhances a plain text input - as demonstrated.
Keyboard navigation is supported.
It's still in early stages so needs lots of cross-browser testing.
It should be possible to use UI sortable to add re-ordering ability if required - I'll try to add this to the demo at some point.
Yanick said
at 11:43 am on Dec 7, 2009
Error 404
Almog Baku said
at 11:08 am on Apr 1, 2009
Some useful feature is that "item" can be removed by clicking on "backspace" or "delete" on the keyboard(as Facebook).
Mark Gibson said
at 12:15 pm on Dec 3, 2009
The demo link for tokenlist above is dead. At present the code lives in github: http://github.com/jollytoad/jquery.ui-tokenlist
I've updated the demo code (in the git repo) to work with the new UI autocomplete widget.
I'll probably be overhauling my tokenlist widget in the next couple of weeks, to integrate better with the new autocomplete.
Any ideas are welcome. May be it's time to turn it into the UI ListBuilder widget.
Wichert Akkerman said
at 4:45 am on Dec 18, 2009
I tried the tokenlist plugin, but it failed to autocomplete anything but the first item. Also as Almog mentioned it should be possible to remove items again using the backspace key. It looks like a promising plugin though!
You don't have permission to comment on this page.