Created
October 17, 2012 21:21
-
-
Save forcementor/3908279 to your computer and use it in GitHub Desktop.
Developing Mobile…Force.com and Sencha-Part 2, Step 3: Add The Form View To the Application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ext.application({ | |
| name: "PocketCRM", | |
| //Load the various MVC components into memory. | |
| models: ["Lead"], | |
| stores: ["Leads"], | |
| controllers: ["Leads"], | |
| views: ["LeadsList", "LeadEditor"], | |
| //The application's startup routine once all components are loaded. | |
| launch: function () { | |
| //Instantiate your main list view for Leads. | |
| var leadsListView = { | |
| xtype: "leadslistview" | |
| }; | |
| var leadEditorView = { | |
| xtype: "leadeditorview" | |
| }; | |
| //Launch the primary fullscreen view and pass in the list view. | |
| Ext.Viewport.add([leadsListView, leadEditorView]); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment