Download the PHP package wdmg/yii2-selectinput without Composer
On this page you can find all versions of the php package wdmg/yii2-selectinput. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-selectinput
Yii2 SelectInput
SelectInput widget for Yii2
Requirements
- PHP 5.6 or higher
- Yii2 v.2.0.33 and newest
- Yii2 Bootstrap
- Bootstrap SelectInput
Installation
To install the widget, run the following command in the console:
$ composer require "wdmg/yii2-selectinput"
Usage
Example of standalone widget:
Example of use with ActiveForm:
Options
SelectInput extends InputWidget so you can use any options available for this widget. In addition, you can use these custom options if necessary:
Name | Type | Default | Description |
---|---|---|---|
options | array | ['class' => 'form-control'] |
Standard options for the input widget. |
pluginOptions | array | ['dropdownClass' => '.dropdown', 'listClass' => '.dropdown-menu', 'itemClass' => '.dropdown-item', 'toggleClass' => '.btn .btn-default .dropdown-toggle', 'toggleText' => 'Dropdown', 'toggleCaret' => '<span class="caret"></span>', 'toggleChange' => true , 'autocomplete' => false, 'minInput' => 2 |
Plugin SelectInput options passed to js. Read more here (https://github.com/wdmg/bootstrap-selectinput). |
items | array | ['value' => 'Label'] |
Array values with labels. |
Status and version
- v.1.0.9 - Update dependencies
- v.1.0.8 - Fixed widget ID and init after Pjax reloading
- v.1.0.7 - Update pluginOptions and plugin version
- v.1.0.6 - Fixed deprecated class declaration
- v.1.0.5 - Update README.md. Update Yii2 version.
All versions of yii2-selectinput with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
^2.0.33
yiisoft/yii2-bootstrap Version *
bower-asset/bootstrap-selectinput-plugin Version ^1.2.1
yiisoft/yii2-bootstrap Version *
bower-asset/bootstrap-selectinput-plugin Version ^1.2.1
The package wdmg/yii2-selectinput contains the following files
Loading the files please wait ....