Download the PHP package kv4nt/yii2-chosen without Composer
On this page you can find all versions of the php package kv4nt/yii2-chosen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kv4nt/yii2-chosen
More information about kv4nt/yii2-chosen
Files in kv4nt/yii2-chosen
Package yii2-chosen
Short Description Bootstrap 4 Chosen widget for Yii2
License BSD-3-Clause
Homepage https://github.com/kv4nt/yii2-chosen
Informations about the package yii2-chosen
Chosen + Bootstrap 4 + Yii2
Fork from https://github.com/RomeroMsk/yii2-chosen
Credits
Chosen http://harvesthq.github.io/chosen/
Chosen Bootstrap Look & Feel https://github.com/dbtek/chosen-bootstrap (with my style fixes)
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require
section of your application's composer.json
file.
Usage
With a model
Without a model
To override default placeholder strings you can add translated messages for Select an option
(single select) and Select some options
(multiple select) to your application message file. By default widget will use 'app' category to translate this strings, but you can set your own category by changing translateCategory
option in widget configuration. For example, you can write this in application config file:
Also you can override placeholder text when invoking widget (it can be useful for selects with small width):
All versions of yii2-chosen with dependencies
bower-asset/bootstrap4c-chosen Version 1.1.*
bower-asset/chosen Version 1.*