Rally App SDK - Tree

by markmsmith

HTML

<script src="https://rally1.rallydev.com/apps/2.0p/sdk-debug.js"></script>
<!DOCTYPE html>
<html>
<head>
    <title>LookbackApp</title>
</head>
<body>
</body>
</html>

JavaScript

Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',
    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    items:[
        {
            xtype: 'container',                    
            items: [
                {
                    xtype: 'rallytree'
                }
            ],
            parentAttributeForChildRecordFn: function(){
                return 'Project';
            },
         }
    ],
    
    launch: function() {
    }   
});


Rally.onReady(function() {
    Rally.loadScripts([
        
    ], function() {
        Rally.launchApp('CustomApp', {
            name: 'LookbackApp'
        })
    });
});