Hello I have been trying to implement ajax with Alloy UI tree ( 2.x)
var children = [
{
cache: true,
id: 'root',
io: urls.folderTree,
label: 'Gambar',
type: 'io'
}
];
new Y.TreeViewDD(
{
boundingBox: '#files',
children: [
{
children: children,
expanded: true,
label: 'Files & Folders'
}
],
after:{
lastSelectedChange : function(event){
console.log(this);
console.log(event.newVal.get('id'));
}
}
}
).render();
My question is inside of urls.folderTree there are attributes, when clicking one item ( lastSelectedChange) I want to get object attributes.
How can I achieve it ? Thanks