SlideShare une entreprise Scribd logo
1  sur  60
Télécharger pour lire hors ligne
4Developers (Poznan, Poland) / April 18th 2012
Martin de Keijzer
Building mobile web applications
with Sencha Touch 2
woensdag 18 april 12
About me
Martin de Keijzer
Dutch web developer
2
@Martin1982
PHPBenelux Board Member
Working for Ibuildings
http://www.martindekeijzer.nl
woensdag 18 april 12
Why mobile?
3
woensdag 18 april 12
Apps
Languages
Apple: Objective-C
Android: Java
Windows Phone: C# / Visual Basic
4
Distribution Methods
Apple: AppStore
Android: Market
Windows Phone: Microsoft Market Place
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
9
sencha generate app <name> <path>
woensdag 18 april 12
Quick start: Sencha Command
10
•App
•Resources
•SDK (DO NOT TOUCH!)
•app.js
•.json files
•index.html
woensdag 18 april 12
Quick Start: Sencha Command
11
Webkit
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
13
app/view/Pictures.js
woensdag 18 april 12
Creating views
14
woensdag 18 april 12
Creating views
15
/app.js
woensdag 18 april 12
Creating views
16
app/view/Main.js
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
19
/app.js
Final point of bootstrapping,
controllers & profiles go first
woensdag 18 april 12
Bootstrapping and Controllers
20
woensdag 18 april 12
Events
21
Make the component selectable
Create a new controller
woensdag 18 april 12
Events
22
app/controller/PictureBox.js
woensdag 18 april 12
Events
23
app/controller/PictureBox.js
woensdag 18 april 12
Events
24
Querying
Predefined events
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
28
Model
Field
Association Validation
woensdag 18 april 12
Model
29
app/model/Talk.js
woensdag 18 april 12
Store
30
Store
Model
Filter Grouper Sorter
woensdag 18 april 12
Store
31
app/store/Schedule.js
app.js
woensdag 18 april 12
Proxy
32
Proxy
Reader Writer
Store Model
woensdag 18 april 12
Proxy
33
app/model/Talk.js
woensdag 18 april 12
Create a list
34
app/view/Schedule.js
woensdag 18 april 12
Create a list
35
app.js
woensdag 18 april 12
Create a list
36
app/view/Main.js
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
41
app/controller/phone/PictureBox.js
app/controller/tablet/PictureBox.js
woensdag 18 april 12
Profile overriding
42
app/profile/Phone.js
woensdag 18 april 12
Profile overriding
43
Desktop
woensdag 18 april 12
Profile overriding
44
Phone
woensdag 18 april 12
Profile overriding
45
Tablet
woensdag 18 april 12
Theme editing
46
woensdag 18 april 12
woensdag 18 april 12
Installing Compass
48
gem install compass
woensdag 18 april 12
The scss file
49
compass compile
compass watch
Extension: .scss
woensdag 18 april 12
The scss file
50
woensdag 18 april 12
Compass Variables
51
sdk/resources/themes/
stylesheets/sencha-touch/
default/_variables.scss
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?
55
http://www.github.com/
Martin1982/4Developers
woensdag 18 april 12
Hungry for more?????
56
June 7 - 8 - 9, 2012
Amsterdam RAI (The Netherlands)
http://mobileconference.nl
Dutch PHP Conference visitors can attend the mobile conference and vice versa!
woensdag 18 april 12
Questions ?
57
woensdag 18 april 12
Thank you!
Contact details:
Twitter: @Martin1982
mdkeijzer@ibuildings.nl
woensdag 18 april 12
Debugging explained
59
Bonus!
woensdag 18 april 12

Contenu connexe

Similaire à Sencha touch 2

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 2Martin de Keijzer
 
The Windows Developer User Group - Dec 2012 Meetup
The Windows Developer User Group - Dec 2012 MeetupThe Windows Developer User Group - Dec 2012 Meetup
The Windows Developer User Group - Dec 2012 MeetupSam Basu
 
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2Ikinnoveer
 
Build Your Mobile App Quality and Test Strategy
Build Your Mobile App Quality and Test StrategyBuild Your Mobile App Quality and Test Strategy
Build Your Mobile App Quality and Test StrategyTechWell
 
Konvensyen Webmaster Negeri Sabah 2013
Konvensyen Webmaster Negeri Sabah 2013Konvensyen Webmaster Negeri Sabah 2013
Konvensyen Webmaster Negeri Sabah 2013edthix
 
SharePoint development evolution from classic to app
SharePoint development evolution from classic to appSharePoint development evolution from classic to app
SharePoint development evolution from classic to appMarco Rizzi
 
Ausoug Connect 2018 - Modern APEX application
Ausoug Connect 2018 - Modern APEX application Ausoug Connect 2018 - Modern APEX application
Ausoug Connect 2018 - Modern APEX application Lino Schildenfeld
 
Girls Can Code - 2/3/17
Girls Can Code - 2/3/17Girls Can Code - 2/3/17
Girls Can Code - 2/3/17Kayla Leung
 
Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippinesdiosa06
 
Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippineskerwin1116
 
Creating Android Apps with PhoneGap
Creating Android Apps with PhoneGapCreating Android Apps with PhoneGap
Creating Android Apps with PhoneGapDean Peters
 
Windows Phone App Studio for Begineers @ Christ College Bangalore
Windows Phone App Studio for Begineers @ Christ College BangaloreWindows Phone App Studio for Begineers @ Christ College Bangalore
Windows Phone App Studio for Begineers @ Christ College BangaloreKarthikeyan Anbarasan (AK)
 
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad NajjarModern Workplace Conference Paris
 
Green Shoots in the Brownest Field: Being a Startup in Government
Green Shoots in the Brownest Field: Being a Startup in GovernmentGreen Shoots in the Brownest Field: Being a Startup in Government
Green Shoots in the Brownest Field: Being a Startup in GovernmentC4Media
 
Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Kayla Leung
 

Similaire à Sencha touch 2 (20)

Sencha Touch 2
Sencha Touch 2Sencha Touch 2
Sencha Touch 2
 
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
 
Gleb Tarasov. Portfolio
Gleb Tarasov. PortfolioGleb Tarasov. Portfolio
Gleb Tarasov. Portfolio
 
The Windows Developer User Group - Dec 2012 Meetup
The Windows Developer User Group - Dec 2012 MeetupThe Windows Developer User Group - Dec 2012 Meetup
The Windows Developer User Group - Dec 2012 Meetup
 
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2
IA Ondernemen met innovatieve apps. Wim Vanhenden. Sessie 2
 
Digital Innovation Presentation
Digital Innovation PresentationDigital Innovation Presentation
Digital Innovation Presentation
 
Build Your Mobile App Quality and Test Strategy
Build Your Mobile App Quality and Test StrategyBuild Your Mobile App Quality and Test Strategy
Build Your Mobile App Quality and Test Strategy
 
Konvensyen Webmaster Negeri Sabah 2013
Konvensyen Webmaster Negeri Sabah 2013Konvensyen Webmaster Negeri Sabah 2013
Konvensyen Webmaster Negeri Sabah 2013
 
SharePoint development evolution from classic to app
SharePoint development evolution from classic to appSharePoint development evolution from classic to app
SharePoint development evolution from classic to app
 
Ausoug Connect 2018 - Modern APEX application
Ausoug Connect 2018 - Modern APEX application Ausoug Connect 2018 - Modern APEX application
Ausoug Connect 2018 - Modern APEX application
 
Girls Can Code - 2/3/17
Girls Can Code - 2/3/17Girls Can Code - 2/3/17
Girls Can Code - 2/3/17
 
Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippines
 
Android + training + philippines
Android + training + philippinesAndroid + training + philippines
Android + training + philippines
 
EESP
EESPEESP
EESP
 
Creating Android Apps with PhoneGap
Creating Android Apps with PhoneGapCreating Android Apps with PhoneGap
Creating Android Apps with PhoneGap
 
Windows Phone App Studio for Begineers @ Christ College Bangalore
Windows Phone App Studio for Begineers @ Christ College BangaloreWindows Phone App Studio for Begineers @ Christ College Bangalore
Windows Phone App Studio for Begineers @ Christ College Bangalore
 
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar
2018-10-18 J2 6 b - PowerApps - the new forms on the block - Ahmad Najjar
 
Green Shoots in the Brownest Field: Being a Startup in Government
Green Shoots in the Brownest Field: Being a Startup in GovernmentGreen Shoots in the Brownest Field: Being a Startup in Government
Green Shoots in the Brownest Field: Being a Startup in Government
 
Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Girls Can Code - 2/10/17
Girls Can Code - 2/10/17
 
Tablets Soft and Apps
Tablets Soft and AppsTablets Soft and Apps
Tablets Soft and Apps
 

Dernier

Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 

Dernier (20)

Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 

Sencha touch 2