Skip to content

Instantly share code, notes, and snippets.

@forcementor
Created October 17, 2012 21:21
Show Gist options
  • Select an option

  • Save forcementor/3908279 to your computer and use it in GitHub Desktop.

Select an option

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
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