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

Searchable select fields via Chosen #29

Open
sweh opened this issue Dec 4, 2015 · 1 comment
Open

Searchable select fields via Chosen #29

sweh opened this issue Dec 4, 2015 · 1 comment

Comments

@sweh
Copy link
Owner

sweh commented Dec 4, 2015

Originally reported by: Florian Pilz (Bitbucket: florianpilz, GitHub: florianpilz)


The JS library https://harvesthq.github.io/chosen provides really good looking select widgets that can search through available options. It also fits in nicely with Bootstrap. The question is whether we want to incorporate another JS library into the core of gocept.jsform and provide this "superior" select as default. Or if we want to stay bare bones and keep the usual HTML select widget.

Integration is really easy, just call $('#field-to_recipient select').chosen({width: '100%'}); on a select template.


@florianpilz
Copy link
Contributor

We should not include it by default to keep dependencies low. But maybe we should provide template / integration code, so the developer only has to install chosen to make it work. Besides we should consider using select2 instead, since chosen is in maintenance mode and is less useful for mobile / responsive.

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

No branches or pull requests

2 participants