Closed fasi1208 closed 4 years ago
Is there no one who can help me ? :(
This is done automatically via the extension via the ajax call - it passes the tree node model's key attribute via ajax call (check the jquery event treeview:selected) which then is used to find the tree node model and passed to the view.
You define which is the key attribute for the node model via the Module::dataStructure['keyAttribute']
setting - which defaults to id
.
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
Controller
public function actionIndex() { echo "{Index}"; }
View
UI
How can I pass each node id to my view when I click each node?