Open sweh opened 8 years ago
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.
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.