Sencha Touch ◾ 249
As expected, the index.html file includes the debug version of the Sencha Touch JavaScript
library, the default CSS file for the Sencha Touch library, and our custom JavaScript file, a p p.j s ,
that will contain our application code. e file includes a closing set of <body></body> tags
that will be used to display the output of the application.
Create our custom JavaScript file called a p p.j s in the root folder of the application and write
the code as shown in Listing 9.8.
Listing 9.8 Code Written in the a p p.js File
Ext.application({
name: "WelcomeApp",
controllers: ["WelcomeController"],
views: ['WelcomeView'],
launch: function () {
var welcomePanel = Ext.create('Ext.Panel', {
layout: 'fit',
items: [
{
xtype: 'welcomeform' ...