Closed vedina closed 9 years ago
I added the rows in the Identifiers section and added a UI component that turns a select
dropdown with multiple
attribute into an autocomplete list of items. For demonstration the lists are populated with the Nobel laureates in Chemistry from 2000 to 2014. Since the underlying select
field can have user ids for the option
s' value
attribute and user names displayed, it's perfect for the situation.
The component can also work with AJAX.
Requires jquery.tokenize.js and .css otherwise
$('.jtox-users-select', root).tokenize(); in ui_matrix.js:111 gives
TypeError: undefined is not a function {stack: (...), message: "undefined is not a function"}
The UI works fine. Will create a new ticket to enable dynamic retrieval of user names.
@gonzomir - Is there a way to provide JSON source for the user list? And what format ?
Yes, the users can be populated with a JSON. The format is something like this (exact field names can be configured):
[
{ "value": "1", "text": "Alan J. Heeger (United States)" },
{ "value": "2", "text": "Alan G. MacDiarmid (United States, New Zealand)" }
]
We can also populate the select
elements only once before initializing the widget, in which case the JSON can be any format.
Let's move the discussion to #115
Add two more fields:
Implementation