How to reach ajax object in Alloy UI tree

16 views
Skip to first unread message

Şahin Yanlık

unread,
Jul 22, 2016, 2:40:54 AM7/22/16
to AlloyUI
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
Reply all
Reply to author
Forward
0 new messages