PHP code example of ffsoft / yii2-multiselect
1. Go to this page and download the library: Download ffsoft/yii2-multiselect library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ffsoft / yii2-multiselect example snippets
<?= $form->field($model, '...')->widget(MultiSelect::class, [
'items' => [...],
'clientOptions' => [
/**
* If we don't set width by CSS or JS, the input will most likely be very short
*/
'width' => '100%'
]
]);