I used kartik\tree\TreeViewInput in my project but in update form I can't display current selected values in treeview input!
I tried some thing like this based on documentation:
<?= $form->field($model, 'tags')->widget(\kartik\tree\TreeViewInput::className(),[
'name' => 'tags',
'query' => Tags::find()->addOrderBy('root, lft'),
'value' => 1,
'headingOptions' => ['label' => 'tags'],
'rootOptions' => ['label'=>'<i class="fa fa-building"></i>'],
'fontAwesome' => true,
'asDropdown' => true,
'multiple' => true,
'options' => ['disabled' => false]
]); ?>
But it doesn't display tag with (id='1')! How should I display values?