antimail / yii2-dropdown-tree
A dropdown widget containing expandable treeview
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2: 2.*
This package is auto-updated.
Last update: 2024-04-14 12:29:03 UTC
README
[
//'label' => 'Категория',
'attribute' => 'category_id',
'value' => 'category.name',
'contentOptions' => ['style'=>'padding:0px 0px 0px 30px;vertical-align: middle; margin: 0 auto;text-align: center'],
'filter'=> \antimail\dropdowntree\DropdownTreeWidget::widget([
'model'=> $searchModel,
'attribute' => 'category_id',
'items' => \common\models\Category::find()->asArray()->all(),
]),
],