244 ◾ PhoneGap Build
Listing 9.5 Code Written in the m y _ a p p.j s File
Ext.setup({
onReady: function() {
var message = new Ext.Container({
fullscreen: true,
items: [{
html: 'Hello World'
}]
});
}
});
Upon running the application, the Ext.setup class will set up an application and will exe-
cute the onReady function, which in turn will display the Hello World message on the
screen, as shown in Figure 9.13.
Note: e Ext.application class provides more features than the Ext.setup class while
configuring a new application.
Sencha Touch Fields
Sencha Touch supports the standard HTML field types given below:
◾ checkboxfield
◾ fieldset
◾ hiddenfield
◾ passwordfield
◾ radiofield
◾ selectfield
◾ textfield
◾ textareafield
Sencha Touch also supports the ...