SlideShare ist ein Scribd-Unternehmen logo
1 von 50
Sencha Touch HTML5 and JavaScript Mobile  Web App Framework Version 1.01
[object Object],[object Object],[object Object],[object Object],Building Applications on mobile
 
INTRODUCTION  TO SENCHA TOUCH ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Platform support and
Starting With Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],<!DOCTYPE html> <html> <head> <!-- <meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=us-ascii&quot; />--> <title>Overlay</title> <link rel=&quot;stylesheet&quot; href=&quot;css/sencha-touch.css&quot; type=&quot;text/css&quot; /> <script type=&quot;text/javascript&quot; src=&quot;JS/sencha-touch.js&quot;></script> <script type=&quot;text/javascript&quot; src=&quot;JS/myapp.js&quot;></script> </head> </body> </html> Creating the HTML file
[object Object],Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: true, onReady: function() { // write your Sencha Code here } }); Create the application JavaScript File:-
[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Test the Application
BUILDING MOBILE USER INTERFACES WITH  SENCHA TOUCH ,[object Object],[object Object],[object Object],[object Object]
The framework’s provide many ready to use themes that make the Web App look native
Sencha Touch Components
Panels ,[object Object],[object Object],[object Object],[object Object]
Panels can contain an array of Items and docked Items:- Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: true, onReady: function() { new Ext.Panel ({   fullscreen : true ,   items : [ ] ,   dockedItems : [ ]   }); } });
In the figure we have a Panel with three  docked items:- ToolBar docked at the Top List Panel docked at the Left ToolBar docked at the bottom Docked Items Example
Creating a Component ,[object Object],[object Object],[object Object]
Styling With UI Attribute
Sencha Touch Buttons and icons and docked Toolbars
Buttons in Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ToolBars in Sencha Touch ,[object Object],[object Object],[object Object],var viewport = new Ext.Panel({ fullscreen: true, dockedItems: [{ xtype: 'toolbar', dock: 'top', items: [ { xtype: 'textfield', name : 'name', placeHolder: 'Text',   },   { xtype: 'searchfield', name : 'search', placeHolder: 'Search' }, { xtype: 'button', ui:'confirm',   text:'Test' }] }] });
Icons in Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Layouts ,[object Object],[object Object],[object Object],Layouts decide how the components would be placed on the Page.  Many Layouts are available in Sencha Touch:- Hbox:-It tiles items  horizontally Vbox:-It tiles items vertically Fit:-Items occupy entire space available
Container Properties Layouts ,[object Object],[object Object]
Forms in Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
TabPanels in Sencha Touch ,[object Object],[object Object],[object Object]
Carousels in Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],var carousel2 = new Ext.Carousel({ direction: 'vertical', ui: 'light', items: [ { title: 'Tab 1', html: ‘1’ }, { title: 'Tab 2', html: '2' }, { title: 'Tab 3', html: '3' }] });
Templates and XTemplates ,[object Object],[object Object],[object Object],var planetinfo=new Ext.Template( ‘ <table>’, ‘ <tr>’, ‘ <td>’, '<h2>Name:{name}</h2>', ‘ </td>’, ‘ </tr>’, ‘ </table>>’ )
List of Formatting Functions with  Templates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List component in Sencha Touch ,[object Object],Single List Grouped List Disclosure List
Data Stores Ext.regModel('Task',  { fields: [ {name: 'name', type: 'string'},  {name: 'description', type: 'string'} ] }) var dataStore = new Ext.data.Store({ model: 'Task', data: tasks }) var listControl = new Ext.List({ store: dataStore}) For data-driven controls - such as Lists and Trees, Sencha Touch requires that you use their data model abstraction.  To convert an array of objects(with the prescribed fields) into an Ext data store, we would have to:- To bind  dataStore  to a List control, we would have to:-
ListPanel in Sencha Touch Ext.regModel('Contact',{   fields:['firstn','lastn']   });   var storex=new Ext.data.Store({ model:'Contact' , data:[   {firstn:&quot;Askhay&quot;,lastn:&quot;Prabhu&quot;},   {firstn:&quot;Ammeet&quot;,lastn:&quot;Iyer&quot;},   {firstn:&quot;Prateek&quot;,lastn:&quot;Koul&quot;}   ] )}; listPanel = new Ext.List({ id: 'disclosurelist', store: storex, grouped:'true',   }); wrapperpanel=new Ext.Panel({ id:'wrapperpan', items:listPanel,   }); Step 1 Step 2 Step 3
Other useful Sencha Components var datePicker = new Ext.DatePicker({ useTitles: true,   }); var panel = new Ext.Panel({ fullscreen: true, layout: { type: 'vbox', align: 'center', pack: 'center' }, items: [{ xtype: 'button', ui: 'normal', text: 'Show DatePicker', handler: function() { datePicker.show(); } }] }); Date  Picker
xtype:'button', text:'Test', handler:function(){   Ext.Msg.alert( ‘ Title ‘ , ’Hello’);   }    xtype:'button', text:'Test', handler:function(){   Ext.Msg.confirm(' Confirmation','Are You Sure You Want To Quit?',Ext.emptyFn);   }    xtype:'button', text:'Test', handler:function(){   Ext.Msg.prompt('Welcome','Enter First Name', Ext.emptyFn);   }    Sencha Touch Pop-Ups xtype:'button', text:'Test', handler:function(){   Ext.Msg.alert( ‘ Title ‘ , ’Hello’);   }    Alert Box Prompt Box Confirm Box
Maps in Sencha Touch ,[object Object],[object Object],new Ext.Panel({ fullscreen:true, items:[ { xtype: ’map’ , title: ’ Maps ’ } ] });
Sencha Touch UX Extensions ,[object Object],[object Object],[object Object],[object Object]
Touch Grid Panel Ext.regModel(&quot;TouchGridPanel&quot;, { fields: [ &quot;AppName&quot;, &quot;Description&quot;, &quot;Type&quot;, &quot;Download&quot;, ] });  store = new Ext.data.Store({ model: &quot;TouchGridPanel&quot;, data: [ { AppName: &quot;“, Description: &quot;&quot;, Type: &quot;&quot;,  Download:&quot;&quot;,  updated: &quot;&quot; }, { AppName: &quot;“, Description: &quot;&quot;, Type: &quot;&quot;,  Download:&quot;&quot;,  updated: &quot;&quot; }, { AppName: &quot;“, Description: &quot;&quot;, Type: &quot;&quot;,  Download:&quot;&quot;,  updated: &quot;&quot; }, { AppName: &quot;“, Description: &quot;&quot;, Type: &quot;&quot;,  Download:&quot;&quot;,  updated: &quot;&quot; }, ] }); ,[object Object],[object Object]
Touch Grid Panel(Continued) var colModel = [{ header: &quot;<span style='font-size:13px'>AppName</span>&quot;, mapping: &quot;AppName&quot;,   style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Description</span>&quot;, mapping: &quot;Description&quot;, style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Type</span>&quot;, mapping: &quot;Type&quot;,   style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Download</span>&quot;, mapping: &quot;Download&quot;, cls: &quot;centered-cell&quot;, } ]; new Ext.ux.TouchGridPanel({ store: store, colModel: colModel, });
Animations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Framework recognizes various tap events, hence allowing for mapping functions to each event. Sencha Touch Events
Event Listeners var EventPanel=new Ext.Panel({     }); EventPanel.addListener({ body:{ swipe: function(){Ext.Msg.alert( &quot;Title&quot; , &quot;swiped&quot;);}, tap: function(){Ext.Msg.alert( &quot;Title&quot; , &quot;Tapped&quot;);} } }); var viewport=new Ext.Panel({   fullscreen:true, layout:&quot;fit&quot;, items:[EventPanel]     }); In the example, touch events are added to the body or element section if the panel. The EventPanel is then added to  another container panel, which would then render it.
Difference between Panel and Panel Body or Element
Building Applications on mobile with Sencha ,[object Object],[object Object],[object Object],[object Object]
Limitations of Sencha Touch ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sencha Touch optimization ,[object Object],[object Object],[object Object],[object Object],[object Object],panel.on('cardswitch', function(newCard, oldCard) { if (oldCawrd) { this.remove(oldCard, true); } }, panel);
Sencha Touch Community Demos ,[object Object],[object Object],[object Object]
Learning Resources For Sencha ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practicalRahul juneja
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratchecobold
 
AJAX Workshop Notes
AJAX Workshop NotesAJAX Workshop Notes
AJAX Workshop NotesPamela Fox
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorialzubeditufail
 
Baawjsajq109
Baawjsajq109Baawjsajq109
Baawjsajq109Thinkful
 
Web app-la-jan-2
Web app-la-jan-2Web app-la-jan-2
Web app-la-jan-2Thinkful
 
html for beginners
html for beginnershtml for beginners
html for beginnersKIIZAPHILIP
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptTroyfawkes
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheetHARUN PEHLIVAN
 
Build an App with JavaScript & jQuery
Build an App with JavaScript & jQuery Build an App with JavaScript & jQuery
Build an App with JavaScript & jQuery Aaron Lamphere
 
Eugene Andruszczenko: jQuery
Eugene Andruszczenko: jQueryEugene Andruszczenko: jQuery
Eugene Andruszczenko: jQueryRefresh Events
 
Aspnet mvc tutorial_9_cs
Aspnet mvc tutorial_9_csAspnet mvc tutorial_9_cs
Aspnet mvc tutorial_9_csMurali G
 
Basic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligetiBasic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligetiNaveen Kumar Veligeti
 
JavaScript Workshop
JavaScript WorkshopJavaScript Workshop
JavaScript WorkshopPamela Fox
 

Was ist angesagt? (19)

Windows
WindowsWindows
Windows
 
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
 
Developing in android
Developing in androidDeveloping in android
Developing in android
 
Learn CSS From Scratch
Learn CSS From ScratchLearn CSS From Scratch
Learn CSS From Scratch
 
AJAX Workshop Notes
AJAX Workshop NotesAJAX Workshop Notes
AJAX Workshop Notes
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorial
 
Ios - Introduction to platform & SDK
Ios - Introduction to platform & SDKIos - Introduction to platform & SDK
Ios - Introduction to platform & SDK
 
Baawjsajq109
Baawjsajq109Baawjsajq109
Baawjsajq109
 
Web app-la-jan-2
Web app-la-jan-2Web app-la-jan-2
Web app-la-jan-2
 
html for beginners
html for beginnershtml for beginners
html for beginners
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
TopicHero Descriptions Tutorial
TopicHero Descriptions TutorialTopicHero Descriptions Tutorial
TopicHero Descriptions Tutorial
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheet
 
Build an App with JavaScript & jQuery
Build an App with JavaScript & jQuery Build an App with JavaScript & jQuery
Build an App with JavaScript & jQuery
 
Eugene Andruszczenko: jQuery
Eugene Andruszczenko: jQueryEugene Andruszczenko: jQuery
Eugene Andruszczenko: jQuery
 
Aspnet mvc tutorial_9_cs
Aspnet mvc tutorial_9_csAspnet mvc tutorial_9_cs
Aspnet mvc tutorial_9_cs
 
Fewd week8 slides
Fewd week8 slidesFewd week8 slides
Fewd week8 slides
 
Basic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligetiBasic CSS concepts by naveen kumar veligeti
Basic CSS concepts by naveen kumar veligeti
 
JavaScript Workshop
JavaScript WorkshopJavaScript Workshop
JavaScript Workshop
 

Ähnlich wie Build Mobile Apps with Sencha Touch HTML5 Framework

Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculatorVlad Kolesnyk
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RPaul Richards
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tilesAmr Abulnaga
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectureselliando dias
 
Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Vamsi Krishna
 
Create a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchCreate a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchJames Pearce
 
Cross Platform Mobile App Development - An Introduction to Sencha Touch
Cross Platform Mobile App Development - An Introduction to Sencha TouchCross Platform Mobile App Development - An Introduction to Sencha Touch
Cross Platform Mobile App Development - An Introduction to Sencha TouchFolio3 Software
 
Accessible web applications
Accessible web applications Accessible web applications
Accessible web applications Steven Faulkner
 
A mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutesA mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutesJames Pearce
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)bluejayjunior
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basicsyounganand
 
Building a Mobile App with Sencha Touch
Building a Mobile App with Sencha TouchBuilding a Mobile App with Sencha Touch
Building a Mobile App with Sencha TouchJames Pearce
 
Automatic documantation with mule
Automatic documantation with muleAutomatic documantation with mule
Automatic documantation with muleSunil Komarapu
 

Ähnlich wie Build Mobile Apps with Sencha Touch HTML5 Framework (20)

Sencha Touch MVC
Sencha Touch MVCSencha Touch MVC
Sencha Touch MVC
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in R
 
Diving deep in compose.pdf
Diving deep in compose.pdfDiving deep in compose.pdf
Diving deep in compose.pdf
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tiles
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectures
 
Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)
 
Create a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchCreate a mobile web app with Sencha Touch
Create a mobile web app with Sencha Touch
 
Automatic documentation with mule
Automatic documentation with mule Automatic documentation with mule
Automatic documentation with mule
 
Cross Platform Mobile App Development - An Introduction to Sencha Touch
Cross Platform Mobile App Development - An Introduction to Sencha TouchCross Platform Mobile App Development - An Introduction to Sencha Touch
Cross Platform Mobile App Development - An Introduction to Sencha Touch
 
Accessible web applications
Accessible web applications Accessible web applications
Accessible web applications
 
A mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutesA mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutes
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basics
 
As pnet
As pnetAs pnet
As pnet
 
Building a Mobile App with Sencha Touch
Building a Mobile App with Sencha TouchBuilding a Mobile App with Sencha Touch
Building a Mobile App with Sencha Touch
 
Automatic documantation with mule
Automatic documantation with muleAutomatic documantation with mule
Automatic documantation with mule
 

Build Mobile Apps with Sencha Touch HTML5 Framework

  • 1. Sencha Touch HTML5 and JavaScript Mobile Web App Framework Version 1.01
  • 2.
  • 3.  
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. The framework’s provide many ready to use themes that make the Web App look native
  • 15.
  • 16. Panels can contain an array of Items and docked Items:- Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: true, onReady: function() { new Ext.Panel ({ fullscreen : true , items : [ ] , dockedItems : [ ] }); } });
  • 17. In the figure we have a Panel with three docked items:- ToolBar docked at the Top List Panel docked at the Left ToolBar docked at the bottom Docked Items Example
  • 18.
  • 19. Styling With UI Attribute
  • 20. Sencha Touch Buttons and icons and docked Toolbars
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.  
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. Data Stores Ext.regModel('Task', { fields: [ {name: 'name', type: 'string'}, {name: 'description', type: 'string'} ] }) var dataStore = new Ext.data.Store({ model: 'Task', data: tasks }) var listControl = new Ext.List({ store: dataStore}) For data-driven controls - such as Lists and Trees, Sencha Touch requires that you use their data model abstraction. To convert an array of objects(with the prescribed fields) into an Ext data store, we would have to:- To bind dataStore  to a List control, we would have to:-
  • 34. ListPanel in Sencha Touch Ext.regModel('Contact',{ fields:['firstn','lastn'] }); var storex=new Ext.data.Store({ model:'Contact' , data:[ {firstn:&quot;Askhay&quot;,lastn:&quot;Prabhu&quot;}, {firstn:&quot;Ammeet&quot;,lastn:&quot;Iyer&quot;}, {firstn:&quot;Prateek&quot;,lastn:&quot;Koul&quot;} ] )}; listPanel = new Ext.List({ id: 'disclosurelist', store: storex, grouped:'true', }); wrapperpanel=new Ext.Panel({ id:'wrapperpan', items:listPanel, }); Step 1 Step 2 Step 3
  • 35. Other useful Sencha Components var datePicker = new Ext.DatePicker({ useTitles: true, }); var panel = new Ext.Panel({ fullscreen: true, layout: { type: 'vbox', align: 'center', pack: 'center' }, items: [{ xtype: 'button', ui: 'normal', text: 'Show DatePicker', handler: function() { datePicker.show(); } }] }); Date Picker
  • 36. xtype:'button', text:'Test', handler:function(){ Ext.Msg.alert( ‘ Title ‘ , ’Hello’); } xtype:'button', text:'Test', handler:function(){ Ext.Msg.confirm(' Confirmation','Are You Sure You Want To Quit?',Ext.emptyFn); } xtype:'button', text:'Test', handler:function(){ Ext.Msg.prompt('Welcome','Enter First Name', Ext.emptyFn); } Sencha Touch Pop-Ups xtype:'button', text:'Test', handler:function(){ Ext.Msg.alert( ‘ Title ‘ , ’Hello’); } Alert Box Prompt Box Confirm Box
  • 37.
  • 38.
  • 39.
  • 40. Touch Grid Panel(Continued) var colModel = [{ header: &quot;<span style='font-size:13px'>AppName</span>&quot;, mapping: &quot;AppName&quot;, style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Description</span>&quot;, mapping: &quot;Description&quot;, style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Type</span>&quot;, mapping: &quot;Type&quot;, style: &quot;text-align: center;&quot; }, { header: &quot;<span style='font-size:13px'>Download</span>&quot;, mapping: &quot;Download&quot;, cls: &quot;centered-cell&quot;, } ]; new Ext.ux.TouchGridPanel({ store: store, colModel: colModel, });
  • 41.
  • 42. The Framework recognizes various tap events, hence allowing for mapping functions to each event. Sencha Touch Events
  • 43. Event Listeners var EventPanel=new Ext.Panel({ }); EventPanel.addListener({ body:{ swipe: function(){Ext.Msg.alert( &quot;Title&quot; , &quot;swiped&quot;);}, tap: function(){Ext.Msg.alert( &quot;Title&quot; , &quot;Tapped&quot;);} } }); var viewport=new Ext.Panel({ fullscreen:true, layout:&quot;fit&quot;, items:[EventPanel] }); In the example, touch events are added to the body or element section if the panel. The EventPanel is then added to another container panel, which would then render it.
  • 44. Difference between Panel and Panel Body or Element
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.

Hinweis der Redaktion

  1. Javascript library for developing web based applications for mobile and tablet devices…Works in conjunction with web absed tech like html5,css3
  2. Open source version under gpl3