SlideShare a Scribd company logo
1 of 60
Download to read offline
Building mobile web applications
                                               with Sencha Touch 2




                                                    Martin de Keijzer
                       4Developers (Poznan, Poland) / April 18th 2012


woensdag 18 april 12
About me

            Martin de Keijzer


            Dutch web developer


                       Working for Ibuildings

                       PHPBenelux Board Member


                       @Martin1982

                       http://www.martindekeijzer.nl

                                                       2
woensdag 18 april 12
Why mobile?




                        3
woensdag 18 april 12
Apps


          Languages
               Apple: Objective-C
               Android: Java
               Windows Phone: C# / Visual Basic


          Distribution Methods
              Apple: AppStore
              Android: Market
              Windows Phone: Microsoft Market Place



                                                      4
woensdag 18 april 12
Web Apps

               Available through the web
               Platform independent
               Can be transformed to an App-like experience
               Can be wrapped as native apps




                                                              5
woensdag 18 april 12
woensdag 18 april 12
The Sencha Touch way

               Building applications, not websites
               Pure JavaScript
               Touch framework
               MV(S)C Paradigm
               Based on ExtJS 4


          Downloadable from http://www.sencha.com




                                                     7
woensdag 18 april 12
Getting started




                                         8
woensdag 18 april 12
Quick start: Sencha Command

           sencha generate app <name> <path>




                                               9
woensdag 18 april 12
Quick start: Sencha Command


                            ā€¢App
                            ā€¢Resources
                            ā€¢SDK (DO NOT TOUCH!)
                            ā€¢app.js
                            ā€¢.json files
                            ā€¢index.html



                                                   10
woensdag 18 april 12
Quick Start: Sencha Command




                               Webkit
                                        11
woensdag 18 april 12
User interface

          Abstraction of various app-interface ui elements:
               containers
               panels
               tabpanels
               carousels
               lists
               forms
               toolbars




                                                              12
woensdag 18 april 12
Creating views




                       app/view/Pictures.js

                                              13
woensdag 18 april 12
Creating views




                           14
woensdag 18 april 12
Creating views




                           /app.js


                                     15
woensdag 18 april 12
Creating views




                       app/view/Main.js
                                          16
woensdag 18 april 12
Creating views




                           17
woensdag 18 april 12
Creating views




                           17
woensdag 18 april 12
Taking control




                                        18
woensdag 18 april 12
Bootstrapping and Controllers




                                    /app.js
                        Final point of bootstrapping,
                       controllers & proļ¬les go ļ¬rst

                                                        19
woensdag 18 april 12
Bootstrapping and Controllers




                                          20
woensdag 18 april 12
Events




                       Make the component selectable




                          Create a new controller

                                                       21
woensdag 18 april 12
Events




                       app/controller/PictureBox.js
                                                      22
woensdag 18 april 12
Events




                       app/controller/PictureBox.js
                                                      23
woensdag 18 april 12
Events




                          Querying




                       Predeļ¬ned events

                                          24
woensdag 18 april 12
Events




                       25
woensdag 18 april 12
Data Communication




                                            26
woensdag 18 april 12
Data communication




                               27
woensdag 18 april 12
Model


                                   Model




                       Field


                               Association   Validation


                                                          28
woensdag 18 april 12
Model




                       app/model/Talk.js
                                           29
woensdag 18 april 12
Store


                                   Store




                       Model


                        Filter   Grouper   Sorter


                                                    30
woensdag 18 april 12
Store




                       app/store/Schedule.js




                              app.js
                                               31
woensdag 18 april 12
Proxy


             Store              Proxy            Model




                       Reader           Writer


                                                         32
woensdag 18 april 12
Proxy




                       app/model/Talk.js

                                           33
woensdag 18 april 12
Create a list




                          app/view/Schedule.js

                                                 34
woensdag 18 april 12
Create a list




                          app.js



                                   35
woensdag 18 april 12
Create a list




                          app/view/Main.js
                                             36
woensdag 18 april 12
Data in action!




                            37
woensdag 18 april 12
Device profiles




                                         38
woensdag 18 april 12
Device profiles

          Different devices require different options.


          Tablet has more screen real estate and can provide more
          user interaction than a phone.


          Sencha Touch 2 provides profiles to build concrete
          implementations of the device functionalities.




                                                                    39
woensdag 18 april 12
Profile setup




                          40
woensdag 18 april 12
Profile overriding




                       app/controller/phone/PictureBox.js




                       app/controller/tablet/PictureBox.js
                                                             41
woensdag 18 april 12
Profile overriding




                       app/proļ¬le/Phone.js


                                             42
woensdag 18 april 12
Profile overriding




                               Desktop

                                         43
woensdag 18 april 12
Profile overriding




                               Phone




                                       44
woensdag 18 april 12
Profile overriding




                               Tablet
                                        45
woensdag 18 april 12
Theme editing




                                       46
woensdag 18 april 12
woensdag 18 april 12
Installing Compass




                       gem install compass
                                             48
woensdag 18 april 12
The scss file



                            Extension: .scss



                          compass compile


                           compass watch


                                               49
woensdag 18 april 12
The scss file




                          50
woensdag 18 april 12
Compass Variables




                                sdk/resources/themes/
                              stylesheets/sencha-touch/
                                default/_variables.scss


                                                          51
woensdag 18 april 12
Compass Mixins




                           52
woensdag 18 april 12
Tips and conclusions




                                              53
woensdag 18 april 12
Quick Tips


          ā€¢Well documented on http://docs.sencha.com

          ā€¢Sencha Command

          ā€¢Sencha Designer 2 Beta

          ā€¢Keep your views clean, use controllers!

          ā€¢Mobile devices have limited hardware


                                                       54
woensdag 18 april 12
Need another look?




                               http://www.github.com/
                               Martin1982/4Developers




                                                        55
woensdag 18 april 12
Hungry for more?????




                                  June 7 - 8 - 9, 2012
                           Amsterdam RAI (The Netherlands)
                              http://mobileconference.nl
                  Dutch PHP Conference visitors can attend the mobile conference and vice versa!



                                                                                                   56
woensdag 18 april 12
Questions ?




                                     57
woensdag 18 april 12
Thank you!
                               Contact details:
                         Twitter: @Martin1982
                        mdkeijzer@ibuildings.nl




woensdag 18 april 12
Bonus!
                       Debugging explained




                                             59
woensdag 18 april 12

More Related Content

Similar to Sencha Touch 2

Engineering Change
Engineering ChangeEngineering Change
Engineering ChangeKellan
Ā 
Building Rich User Experiences w/o JavaScript Spaghetti
Building Rich User Experiences w/o JavaScript SpaghettiBuilding Rich User Experiences w/o JavaScript Spaghetti
Building Rich User Experiences w/o JavaScript SpaghettiJared Faris
Ā 
Hybrid Mobile Web Apps with Sencha Touch 2
Hybrid Mobile Web Apps with Sencha Touch 2Hybrid Mobile Web Apps with Sencha Touch 2
Hybrid Mobile Web Apps with Sencha Touch 2Ibuildings
Ā 
The Restless Are Getting Native: SeleniumConf 2012
The Restless Are Getting Native: SeleniumConf 2012The Restless Are Getting Native: SeleniumConf 2012
The Restless Are Getting Native: SeleniumConf 2012Dante Briones
Ā 
Mobile Apps - Why Agile Project Management Matters
Mobile Apps - Why Agile Project Management MattersMobile Apps - Why Agile Project Management Matters
Mobile Apps - Why Agile Project Management Mattersroland99
Ā 
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos Ɓgeis
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos ƁgeisExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos Ɓgeis
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos ƁgeisLambda 3
Ā 
Striving for Perfection: The Ultimate APEX Application Architecture
Striving for Perfection: The Ultimate APEX Application ArchitectureStriving for Perfection: The Ultimate APEX Application Architecture
Striving for Perfection: The Ultimate APEX Application ArchitectureRoel Hartman
Ā 
Bear Douglas - Open Graph Montreal
Bear Douglas - Open Graph MontrealBear Douglas - Open Graph Montreal
Bear Douglas - Open Graph Montrealpherrera82
Ā 

Similar to Sencha Touch 2 (8)

Engineering Change
Engineering ChangeEngineering Change
Engineering Change
Ā 
Building Rich User Experiences w/o JavaScript Spaghetti
Building Rich User Experiences w/o JavaScript SpaghettiBuilding Rich User Experiences w/o JavaScript Spaghetti
Building Rich User Experiences w/o JavaScript Spaghetti
Ā 
Hybrid Mobile Web Apps with Sencha Touch 2
Hybrid Mobile Web Apps with Sencha Touch 2Hybrid Mobile Web Apps with Sencha Touch 2
Hybrid Mobile Web Apps with Sencha Touch 2
Ā 
The Restless Are Getting Native: SeleniumConf 2012
The Restless Are Getting Native: SeleniumConf 2012The Restless Are Getting Native: SeleniumConf 2012
The Restless Are Getting Native: SeleniumConf 2012
Ā 
Mobile Apps - Why Agile Project Management Matters
Mobile Apps - Why Agile Project Management MattersMobile Apps - Why Agile Project Management Matters
Mobile Apps - Why Agile Project Management Matters
Ā 
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos Ɓgeis
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos ƁgeisExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos Ɓgeis
ExperiĆŖncias, Erros e Acertos no Desenvolvimento de Projetos Ɓgeis
Ā 
Striving for Perfection: The Ultimate APEX Application Architecture
Striving for Perfection: The Ultimate APEX Application ArchitectureStriving for Perfection: The Ultimate APEX Application Architecture
Striving for Perfection: The Ultimate APEX Application Architecture
Ā 
Bear Douglas - Open Graph Montreal
Bear Douglas - Open Graph MontrealBear Douglas - Open Graph Montreal
Bear Douglas - Open Graph Montreal
Ā 

More from Martin de Keijzer

High quality live broadcasting with PHP 27 07-2016
High quality live broadcasting with PHP 27 07-2016High quality live broadcasting with PHP 27 07-2016
High quality live broadcasting with PHP 27 07-2016Martin de Keijzer
Ā 
Productive & easy mobile app dev
Productive & easy mobile app devProductive & easy mobile app dev
Productive & easy mobile app devMartin de Keijzer
Ā 
tiCONF Amsterdam 2014 building mobile teams
tiCONF Amsterdam 2014   building mobile teamstiCONF Amsterdam 2014   building mobile teams
tiCONF Amsterdam 2014 building mobile teamsMartin de Keijzer
Ā 
Native Javascript apps with PhoneGap 11-04-2014 Codemotion Rome
Native Javascript apps with PhoneGap 11-04-2014 Codemotion RomeNative Javascript apps with PhoneGap 11-04-2014 Codemotion Rome
Native Javascript apps with PhoneGap 11-04-2014 Codemotion RomeMartin de Keijzer
Ā 
The Environment Restaurant
The Environment RestaurantThe Environment Restaurant
The Environment RestaurantMartin de Keijzer
Ā 
Introduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap BuildIntroduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap BuildMartin de Keijzer
Ā 
Native Javascript apps with PhoneGap
Native Javascript apps with PhoneGapNative Javascript apps with PhoneGap
Native Javascript apps with PhoneGapMartin de Keijzer
Ā 
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OSMartin de Keijzer
Ā 
2012 09-04 smart devcon - sencha touch 2
2012 09-04 smart devcon - sencha touch 22012 09-04 smart devcon - sencha touch 2
2012 09-04 smart devcon - sencha touch 2Martin de Keijzer
Ā 
Let's take over the world with Zend Framework
Let's take over the world with Zend FrameworkLet's take over the world with Zend Framework
Let's take over the world with Zend FrameworkMartin de Keijzer
Ā 
Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)Martin de Keijzer
Ā 
Improving code quality using CI
Improving code quality using CIImproving code quality using CI
Improving code quality using CIMartin de Keijzer
Ā 
Continuous integration why and how? [DPC uncon quick-prep version]
Continuous integration   why and how? [DPC uncon quick-prep version]Continuous integration   why and how? [DPC uncon quick-prep version]
Continuous integration why and how? [DPC uncon quick-prep version]Martin de Keijzer
Ā 
Subversion In De Praktijk
Subversion In De PraktijkSubversion In De Praktijk
Subversion In De PraktijkMartin de Keijzer
Ā 
Een introductie voor Phpunit
Een introductie voor PhpunitEen introductie voor Phpunit
Een introductie voor PhpunitMartin de Keijzer
Ā 

More from Martin de Keijzer (17)

High quality live broadcasting with PHP 27 07-2016
High quality live broadcasting with PHP 27 07-2016High quality live broadcasting with PHP 27 07-2016
High quality live broadcasting with PHP 27 07-2016
Ā 
Productive & easy mobile app dev
Productive & easy mobile app devProductive & easy mobile app dev
Productive & easy mobile app dev
Ā 
tiCONF Amsterdam 2014 building mobile teams
tiCONF Amsterdam 2014   building mobile teamstiCONF Amsterdam 2014   building mobile teams
tiCONF Amsterdam 2014 building mobile teams
Ā 
Native Javascript apps with PhoneGap 11-04-2014 Codemotion Rome
Native Javascript apps with PhoneGap 11-04-2014 Codemotion RomeNative Javascript apps with PhoneGap 11-04-2014 Codemotion Rome
Native Javascript apps with PhoneGap 11-04-2014 Codemotion Rome
Ā 
The Environment Restaurant
The Environment RestaurantThe Environment Restaurant
The Environment Restaurant
Ā 
Introduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap BuildIntroduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap Build
Ā 
Native Javascript apps with PhoneGap
Native Javascript apps with PhoneGapNative Javascript apps with PhoneGap
Native Javascript apps with PhoneGap
Ā 
Mobile is everywhere
Mobile is everywhereMobile is everywhere
Mobile is everywhere
Ā 
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
Ā 
2012 09-04 smart devcon - sencha touch 2
2012 09-04 smart devcon - sencha touch 22012 09-04 smart devcon - sencha touch 2
2012 09-04 smart devcon - sencha touch 2
Ā 
Sencha Touch 2
Sencha Touch 2Sencha Touch 2
Sencha Touch 2
Ā 
Let's take over the world with Zend Framework
Let's take over the world with Zend FrameworkLet's take over the world with Zend Framework
Let's take over the world with Zend Framework
Ā 
Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)
Ā 
Improving code quality using CI
Improving code quality using CIImproving code quality using CI
Improving code quality using CI
Ā 
Continuous integration why and how? [DPC uncon quick-prep version]
Continuous integration   why and how? [DPC uncon quick-prep version]Continuous integration   why and how? [DPC uncon quick-prep version]
Continuous integration why and how? [DPC uncon quick-prep version]
Ā 
Subversion In De Praktijk
Subversion In De PraktijkSubversion In De Praktijk
Subversion In De Praktijk
Ā 
Een introductie voor Phpunit
Een introductie voor PhpunitEen introductie voor Phpunit
Een introductie voor Phpunit
Ā 

Recently uploaded

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
Ā 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜RTylerCroy
Ā 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
Ā 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
Ā 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
Ā 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
Ā 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
Ā 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
Ā 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
Ā 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
Ā 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
Ā 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
Ā 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
Ā 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
Ā 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
Ā 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
Ā 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
Ā 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
Ā 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Ā 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜
Ā 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Ā 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Ā 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Ā 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Ā 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Ā 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Ā 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Ā 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Ā 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
Ā 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Ā 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Ā 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Ā 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
Ā 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Ā 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Ā 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Ā 

Sencha Touch 2

  • 1. Building mobile web applications with Sencha Touch 2 Martin de Keijzer 4Developers (Poznan, Poland) / April 18th 2012 woensdag 18 april 12
  • 2. About me Martin de Keijzer Dutch web developer Working for Ibuildings PHPBenelux Board Member @Martin1982 http://www.martindekeijzer.nl 2 woensdag 18 april 12
  • 3. Why mobile? 3 woensdag 18 april 12
  • 4. Apps Languages Apple: Objective-C Android: Java Windows Phone: C# / Visual Basic Distribution Methods Apple: AppStore Android: Market Windows Phone: Microsoft Market Place 4 woensdag 18 april 12
  • 5. Web Apps Available through the web Platform independent Can be transformed to an App-like experience Can be wrapped as native apps 5 woensdag 18 april 12
  • 7. The Sencha Touch way Building applications, not websites Pure JavaScript Touch framework MV(S)C Paradigm Based on ExtJS 4 Downloadable from http://www.sencha.com 7 woensdag 18 april 12
  • 8. Getting started 8 woensdag 18 april 12
  • 9. Quick start: Sencha Command sencha generate app <name> <path> 9 woensdag 18 april 12
  • 10. Quick start: Sencha Command ā€¢App ā€¢Resources ā€¢SDK (DO NOT TOUCH!) ā€¢app.js ā€¢.json files ā€¢index.html 10 woensdag 18 april 12
  • 11. Quick Start: Sencha Command Webkit 11 woensdag 18 april 12
  • 12. User interface Abstraction of various app-interface ui elements: containers panels tabpanels carousels lists forms toolbars 12 woensdag 18 april 12
  • 13. Creating views app/view/Pictures.js 13 woensdag 18 april 12
  • 14. Creating views 14 woensdag 18 april 12
  • 15. Creating views /app.js 15 woensdag 18 april 12
  • 16. Creating views app/view/Main.js 16 woensdag 18 april 12
  • 17. Creating views 17 woensdag 18 april 12
  • 18. Creating views 17 woensdag 18 april 12
  • 19. Taking control 18 woensdag 18 april 12
  • 20. Bootstrapping and Controllers /app.js Final point of bootstrapping, controllers & proļ¬les go ļ¬rst 19 woensdag 18 april 12
  • 21. Bootstrapping and Controllers 20 woensdag 18 april 12
  • 22. Events Make the component selectable Create a new controller 21 woensdag 18 april 12
  • 23. Events app/controller/PictureBox.js 22 woensdag 18 april 12
  • 24. Events app/controller/PictureBox.js 23 woensdag 18 april 12
  • 25. Events Querying Predeļ¬ned events 24 woensdag 18 april 12
  • 26. Events 25 woensdag 18 april 12
  • 27. Data Communication 26 woensdag 18 april 12
  • 28. Data communication 27 woensdag 18 april 12
  • 29. Model Model Field Association Validation 28 woensdag 18 april 12
  • 30. Model app/model/Talk.js 29 woensdag 18 april 12
  • 31. Store Store Model Filter Grouper Sorter 30 woensdag 18 april 12
  • 32. Store app/store/Schedule.js app.js 31 woensdag 18 april 12
  • 33. Proxy Store Proxy Model Reader Writer 32 woensdag 18 april 12
  • 34. Proxy app/model/Talk.js 33 woensdag 18 april 12
  • 35. Create a list app/view/Schedule.js 34 woensdag 18 april 12
  • 36. Create a list app.js 35 woensdag 18 april 12
  • 37. Create a list app/view/Main.js 36 woensdag 18 april 12
  • 38. Data in action! 37 woensdag 18 april 12
  • 39. Device profiles 38 woensdag 18 april 12
  • 40. Device profiles Different devices require different options. Tablet has more screen real estate and can provide more user interaction than a phone. Sencha Touch 2 provides profiles to build concrete implementations of the device functionalities. 39 woensdag 18 april 12
  • 41. Profile setup 40 woensdag 18 april 12
  • 42. Profile overriding app/controller/phone/PictureBox.js app/controller/tablet/PictureBox.js 41 woensdag 18 april 12
  • 43. Profile overriding app/proļ¬le/Phone.js 42 woensdag 18 april 12
  • 44. Profile overriding Desktop 43 woensdag 18 april 12
  • 45. Profile overriding Phone 44 woensdag 18 april 12
  • 46. Profile overriding Tablet 45 woensdag 18 april 12
  • 47. Theme editing 46 woensdag 18 april 12
  • 49. Installing Compass gem install compass 48 woensdag 18 april 12
  • 50. The scss file Extension: .scss compass compile compass watch 49 woensdag 18 april 12
  • 51. The scss file 50 woensdag 18 april 12
  • 52. Compass Variables sdk/resources/themes/ stylesheets/sencha-touch/ default/_variables.scss 51 woensdag 18 april 12
  • 53. Compass Mixins 52 woensdag 18 april 12
  • 54. Tips and conclusions 53 woensdag 18 april 12
  • 55. Quick Tips ā€¢Well documented on http://docs.sencha.com ā€¢Sencha Command ā€¢Sencha Designer 2 Beta ā€¢Keep your views clean, use controllers! ā€¢Mobile devices have limited hardware 54 woensdag 18 april 12
  • 56. Need another look? http://www.github.com/ Martin1982/4Developers 55 woensdag 18 april 12
  • 57. Hungry for more????? June 7 - 8 - 9, 2012 Amsterdam RAI (The Netherlands) http://mobileconference.nl Dutch PHP Conference visitors can attend the mobile conference and vice versa! 56 woensdag 18 april 12
  • 58. Questions ? 57 woensdag 18 april 12
  • 59. Thank you! Contact details: Twitter: @Martin1982 mdkeijzer@ibuildings.nl woensdag 18 april 12
  • 60. Bonus! Debugging explained 59 woensdag 18 april 12