1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    82
    Vote Rating
    2
    zonaib is on a distinguished road

      0  

    Default models

    models


    in Sencha touch 2 , can i create more than one models in single file like in model.js file ,I create two models e.g
    Ext.define('Application.model.SleepTracker', { extend: 'Ext.data.Model',
    config: {
    fields:[]
    }
    });


    Ext.define('Application.model.WaterTracker', { extend: 'Ext.data.Model',
    config: {
    fields:[]
    }
    });

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,240
    Vote Rating
    121
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Sencha Designer enforces that you create one class per file so that it can correctly use the dynamic loader.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1