Builtin Events
- static listen(type, callback) โ Listen for events emitted by this object instance. You can also use the static flavor of this method to listen to events emitted by any instance of this object.
A tokenizer is a UI component similar to a text input, except that it allows the user to input a list of items ("tokens"), generally from a fixed set of results. A familiar example of this UI is the "To:" field of most email clients, where the control autocompletes addresses from the user's address book.
JX.Tokenizer is built on top of JX.Typeahead, and primarily adds the ability to choose multiple items.
To build a JX.Tokenizer, you need to do four things:
If you do this correctly, the input should suggest items and enter them as tokens as the user types.
When the tokenizer is focused, the CSS class jx-tokenizer-container-focused is added to the container node.
Listen for events emitted by this object instance. You can also use the static flavor of this method to listen to events emitted by any instance of this object.
See also JX.Stratcom.listen().
| type | ||
| callback |
| containerNode |
Emitted when the value of the tokenizer changes, similar to an 'onchange' from a <select />.
| e |