How to pass node id for each node clicked in kartik treeview?
问题 I have multiple nodes. I want to show different views on each node click. For this, I have to pass the node id. Below is my code in which I have tried to explain the total scenario `<?= TreeView::widget([ 'query' => \common\models\MdcNode::find()->addOrderBy('root, lft'), 'headingOptions' => ['label' => 'Root'], 'rootOptions' => ['label'=>'<span class="text-primary">Root</span>'], 'topRootAsHeading' => true, // this will override the headingOptions //'displayValue' => 1, // initial display