Module Chosen : pour personnaliser listes déroulantes

Tags:

chosen 7.x-2.0-beta4+1-dev : lib js qui permet de personnaliser les liste déroulantes, avec une .css + on peux faire une recherche dans la liste
Démo et doc à http://harvesthq.github.io/chosen/

Fait partie de commerce

Installer la lib puis activer le module : drush chosenplugin ; drush en chosen
Puis aller à admin/config/user-interface/chosen :

  • The minimum number of options to apply Chosen for single select fields. Example : choosing 10 will only apply Chosen if the number of options is greater or equal to 10.
  •                                 "                                            multi select
  • The minimum number of options to apply Chosen search box. Example : choosing 10 will only apply Chosen search if the number of options is greater or equal to 10. Par défaut à Never
  • Minimum width of widget *
  • Apply Chosen to the following elements : select:visible
    A comma-separated list of jQuery selectors to apply Chosen to, such as select#edit-operation, select#edit-type or .chosen-select. Defaults to select to apply Chosen to all <select> elements.
    => sur tous chps visibles. On peux ici sel les champs où s'applique chosen.
  • Chosen options: 3 cases à cocher
    • décochée: Per default chosen searches only at beginning of words. Enable this option will also find results in the middle of words. Example: Search for land will also find Switzerland.
    • décochée : Enable or disable the search box in the results list to filter out possible options.
    • cochée: Enable or disable the default chosen CSS file. Disable this option if your theme contains custom styles for Chosen replacements.
  • Chosen strings
Fichier attachéTaille
Image icon Configuration du module chosen50.85 Ko