Looking for PHP Yii web client control that acts like `Gmail Label` dropdown
-
20-03-2021 - |
Domanda
I'm working on PHP & Yii framework. Currently I found that filtering my data would be best fit with an HTML control that behave the same way as Gmail's label dropdown list does; e.g. the below screenshot.
The dropdown allow us to:
- Multiple selection
- Filter box to shorten the list based on keywords
Command button
allow to select/deselect all
Is it possible to archive that in Yii/PHP?
Soluzione
Your best bet is to search for a jQuery or similar plugin that will do the work for you and then wrap it in a component.
https://github.com/freshbooks/jquery-selectpicker
and
http://code.google.com/p/jaldropdown/
Are examples, but it depends on the exact implementation.
If you do a good job you could contribute the control back to the yii website for other people to use :)
Altri suggerimenti
It's possible but I'm not aware of a widget in the core framework that does this.
If you can find the PHP/JS for a suitable control then you can easily write your own Yii widget that wraps it up for convenient use in your views.