DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Yahoo Tree JMaki Widget For Phobos

02.07.2007
| 2688 views |
  • submit to reddit
        Yahoo Tree jMaki widget for Phobos

<% 
 library.jmaki.insert(
    {
    component : "yahoo.tree" ,
    value : {
        root : {
                title : 'Default Tree Root Node',
                expanded : true,
                children : [
                    { 
                        title:'Node 1.1',
                        onclick :{url:'foo'}
                    },
                    { 
                        title :'Node 1.2',
                        children :[
                            { 
                                title :'Node 3.1'
                            }
                        ]
                    }
                ]
        }
        }   
    }
    );%>