Open artmarkov opened 3 years ago
Good afternoon. Thank you for this decision.
I have a question about integrating the TreeViewInput widget from the karti-v/yii2-tree-manager repository. Is it possible to make it work in a dynamic form? Maybe someone has encountered a solution to this issue?
<?= $form->field($modelEfficiency, "[{$index}]efficiency_id")->widget(\kartik\tree\TreeViewInput::class, [ 'query' => \common\models\efficiency\EfficiencyTree::find()->addOrderBy('root, lft'), ... ]); ?>
Good afternoon. Thank you for this decision.
I have a question about integrating the TreeViewInput widget from the karti-v/yii2-tree-manager repository. Is it possible to make it work in a dynamic form? Maybe someone has encountered a solution to this issue?
<?= $form->field($modelEfficiency, "[{$index}]efficiency_id")->widget(\kartik\tree\TreeViewInput::class, [
'query' => \common\models\efficiency\EfficiencyTree::find()->addOrderBy('root, lft'), ... ]); ?>