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

Dojo Tree JMaki Widget For Phobos

02.07.2007
| 470 views |
  • submit to reddit
        Dojo Tree jMaki widget for Phobos

<% 
 library.jmaki.insert(
    {
    component : "dojo.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'
                                }
                            ]
                        }
                    ]
            }
        }
    }
    ); %>