Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement tag-like autocomplete for large select choice lists? #74

Open
florianm opened this issue Aug 20, 2015 · 2 comments
Open

Comments

@florianm
Copy link
Contributor

Using the select widget with its choices defined in the custom schema becomes a performance issue for large lists of choices, as they are fully loaded when the dataset edit form is rendered. E.g., 2000 lines of geojson for the spatial snippet will significantly slow down the read view.

@wardi could you point me in the right direction: Is there an elegant way to provide an autocompleting box (like the tag snippet) for custom lists of label:value pairs?

@wardi
Copy link
Contributor

wardi commented Aug 23, 2015

There are a couple problems: the first is that that rendering all the options in the form is slow, the second is that enumerating all the options in a schema or preset really bloats the json/yaml file.

We're addressing both of these issues and allowing certain users to edit the list of available values by defining a new type for our code lists and providing an autocomplete api call to drive JS in the form.

We don't have anything generic and reusable yet. @TkTech @mattleduc @thriuin is there something we can point @florianm to in ckanext-stcndm that would provide some more information? I think it would be great if some of this functionality (validatiors, form snipptes, examples) could be moved to ckanext-scheming because it's super-useful.

@wardi
Copy link
Contributor

wardi commented Mar 18, 2016

@marcfor This is what we spoke about recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants