Tree View Input Demo kartik\tree\TreeViewInput

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads Daily Downloads
Thankful to Krajee!
to get more out of us.

NOTE: This extension depends on the kartik-v/yii2-widget-activeform and creocoder/yii2-nested-sets extensions. Check the composer.json for this extension's requirements and dependencies that may be updated by composer.

Demonstration of the TreeViewInput widget. This is part of the yii2-tree extension package from Krajee with inbuilt jQuery plugins and Yii widgets for tree node manipulation and management using nested sets. The yii2-tree-manager module includes two major widgets TreeView and TreeViewInput. View the complete documentation for details. Click here to configure this demo.

Click here if looking for the TreeView Demo


Configure TreeViewInput Demo


Important Flags
Headings
Configuration Code
echo \kartik\tree\TreeViewInput::widget([
    'name' => 'kvTreeInput',
    'value' => 'true', // preselected values
    'query' => \app\models\Tree::find()->addOrderBy('root, lft'),
    'headingOptions' => ['label' => 'Categories'],
    'rootOptions' => ['label'=>'<i class="fa fa-tree text-success"></i>'],
    'fontAwesome' => true,
    'asDropdown' => true,
    'multiple' => true,
    'options' => ['disabled' => false]
]);