Skip to content

Instantly share code, notes, and snippets.

@forcementor
Created October 17, 2012 17:36
Show Gist options
  • Save forcementor/3906928 to your computer and use it in GitHub Desktop.
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.
<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