Skip to content

Dropdown with tree or list of checkboxes. Extension for Yii2 framework.

Notifications You must be signed in to change notification settings

insperedia/yii2-tree-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree Dropdown

Dropdown with tree or list of checkboxes. This is extension for Yii2 framework.

Usage

<?php
echo \insperedia\treedropdown\DropdownTreeWidget::widget(
    [
        'data' => [
            'item1' => [
                'subitem1',
                'subitem2',               
            ],
           'item2' => [
               'subitem3',
               'subitem4',               
           ],
        ]
    ]
);
?>

OR 

<?php

$form->field($model,'regions')->widget(
      \app\widget\DropdownTreeList\DropdownTreeWidget::class,
      [
          'data' => Yii::$app->geography->regions(),
          'id' => 'regions'
      ]
  )
                      
 ?>

About

Dropdown with tree or list of checkboxes. Extension for Yii2 framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published