I want to render Nested list such that when I drill down back button shows name of parent node. I tried it but looks like if the JSON I am getting doesn’t have node with name text, it won’t work.
Here is the fiddle with local data (in my app I am using store to fetch this from service so I don’t have control over name of nodes)
Please note back button where title is not populated when you go down the tree.
There is this
displayFieldconfig ofNestedListwhere you can specify whichfieldto be used to settitleand item text . By default it is set totextbut you can specify it to be one of yourmodelfield.Here’s working fiddle based on your example. Only change is in
configof NestedList at bottom.But, if you are overriding
getItemTextTplorgetTitleTextTpl, this config will be ignored.