Skip to Main Content
PhoneGap Build
book

PhoneGap Build

by Bintu Harwani
November 2013
Intermediate to advanced content levelIntermediate to advanced
303 pages
8h 45m
English
Auerbach Publications
Content preview from PhoneGap Build
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' ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning App Development with Parse and Phonegap

Beginning App Development with Parse and Phonegap

Wilkins Fernandez, Stephan Alber
Ajax For Dummies®

Ajax For Dummies®

PhD Steve Holzner

Publisher Resources

ISBN: 9781466589742