yii2-extension yii2-indeterminate-checkbox-list
Yii2 multi-level checkbox list
walkboy/yii2-indeterminate-checkbox-list
Yii2 multi-level checkbox list
- Wednesday, May 3, 2017
- by walkboy
- Repository
- 1 Watchers
- 0 Stars
- 32 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 3 % Grown
yii2-indeterminate-checkbox-list
Yii2 implementation of this demo: https://css-tricks.com/examples/IndeterminateCheckboxes/, (*1)
Installation
Add "walkboy/yii2-indeterminate-checkbox-list": "dev-master"
to composer.json and run composer update
, (*2)
Usage
<?= \walkboy\IndeterminateCheckboxList\IndeterminateCheckboxList::widget([
'model' => $model,
'attribute' => 'categories_array',
'source' => Work::find()->orderBy('title')->where('parent_id IS NULL')->orderBy('parent_id')->all(),
'parent_attribute_name' => 'parent_id',
'children_attribute_name' => 'children',
]) ?>
dev-master
9999999-dev
Yii2 multi-level checkbox list
Sources
Download
MIT
The Requires