Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
Madasamy P
Get Foo value from Tree Node
January 3, 2017 9:06 PM
Answer

Madasamy P

Rank: Junior Member

Posts: 90

Join Date: July 27, 2016

Recent Posts

Hi all,

I have a tree structure as,

SOURCE = [

{title: "Client Name", foo: "a",folder: true,expanded: true, children: [
{title: "Book Name", foo: "b",folder: true,expanded: true, children: [
{title: "Chapter Name", foo: "c",folder:true,expanded: true,endEdit:true,children:[
{title:"Art",foo:"f",folder:true,editable:false},
{title:"Copy Editing",foo:"f",folder:true},
{title:"Indesign",foo:"f",folder:true},
{title:"Manuscript",foo:"f",folder:true},
{title:"Miscellaneous",foo:"f",folder:true}

]},
{title: "chapter2", foo: "d"},
{title: "chapter3", foo: "e"}
]},
]},

];


I want to get foo value for the active node in script

Anyone know about this?

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!