Created
October 17, 2012 17:36
-
-
Save forcementor/3906928 to your computer and use it in GitHub Desktop.
Developing Mobile Applications with Force.com and Sencha Touch - Part 1, Build a Visualforce Custom Component to host our JavaScript application.
This file contains 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
<apex:component> | |
<script type="text/javascript"> | |
//============================================================================================== | |
//APPLICATION | |
//The Application class is the entry point into your Sencha Touch application. | |
//============================================================================================== | |
Ext.application({ | |
name: "PocketCRM", | |
//The application's startup routine once all components are loaded. | |
launch: function () { | |
//Instantiate your main list view for Leads. | |
var mainView = Ext.create('Ext.Panel', { | |
fullscreen: true, | |
html: 'Welcome to PocketCRM!' | |
}); | |
//Launch the primary fullscreen view and pass in the main view. | |
Ext.Viewport.add([mainView]); | |
} | |
}); | |
</script> | |
</apex:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment