1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    7
    Vote Rating
    0
    rononeal is on a distinguished road

      0  

    Default First Time w/Architect: Launch and Load List

    First Time w/Architect: Launch and Load List


    Trying to create a simple launch and load of a list from a json file on my local pc webserver using Architect. Real new to the Senchan environment. Is there a sample xda file that does this? I tried to load the xda file from a archive but it is too big.

    Code:
    //@require @packageOverrides
    Ext.Loader.setConfig({
    
    
    });
    
    
    Ext.application({
    
    
        requires: [
            'Ext.dataview.List',
            'Ext.data.proxy.JsonP'
        ],
        models: [
            'Lesson'
        ],
        stores: [
            'Lessons'
        ],
        views: [
            'DetailPanel',
            'ListContainer',
            'MainNav'
        ],
        controllers: [
            'Lesson'
        ],
        name: 'GodSays',
    
    
        launch: function() {
    
    
            Ext.create('GodSays.view.MainNav', {fullscreen: true});
        }
    
    
    });
    MainNav.js

    Code:
    Ext.define('GodSays.view.MainNav', {
        extend: 'Ext.navigation.View',
        alias: 'widget.mainnav',
    
    
        requires: [
            'GodSays.view.ListContainer'
        ],
    
    
        config: {
            navigationBar: {
    
    
            },
            items: [
                {
                    xtype: 'listcontainer',
                    title: 'God Says'
                }
            ]
        }
    
    
    });

  2. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    523
    Vote Rating
    43
    BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough

      0  

    Default


    You'll find what you're after by going through these online tutorials and gain much more in the process.

    John
    I love being a dad (5 & 7), flying airplanes (KBED) and writing code (spaghetti).
    BostonMerlin aka John Bond aka JB
    See U @ SenchaCon '13

Thread Participants: 1