RAPID LEARNING SENCHA TOUCH
RAPID LEARNING SENCHA TOUCH
About the Book
Sencha Touch home page is at http://www.sencha.com/.
This book is collection of standalone tutorials.
This means that each tutorial contains minimum amount of code needed to explain specific functionality.
This is in contrast to building a single application where each new functionality is added on top of already explained ones.
Each tutorial has minimum amount of supporting text making emphasis on the code example to do the explaining.
How to use this book
This book can be used as an introduction to Sencha Touch framework covering most of the basic core functionalities.
In addition book will be updated with more tutorials covering more specific subjects.
Book is also intended as Just In Time Support so that user can learn what it needs when it needs it.
This is why tutorials are standalone and minimalistic focusing only at one problem at the time.
You should however first go through the main features of Sencha Touch to familiarize yourself with the core concepts.
This can be done by first going through the main chapters as deep as you see fit.
Then later you can come back to explore other more specific chapters as you need them.
Table of Contents
1.1 Application Example
1.2 Install Free Commercial Version
1.3 Create Sencha Touch Application
1.4 Start Application
1.4.1 From file system
1.4.2 From Web Server
1.4.3 From Mobile Device
2. Class System
2.1.1 Create Class using Ext.define()
2.2.1 Create Object using Ext.create()
2.2.2 Create Object using xtype
184.108.40.206 Segmented Button
220.127.116.11 Tabbed Panel
18.104.22.168 Navigation View
22.214.171.124 Nested List
126.96.36.199 Field Set
188.8.131.52 Auto Layout
184.108.40.206 Fit Layout
220.127.116.11 Card Layout
18.104.22.168 vbox Layout
22.214.171.124 hbox Layout
3.3.2 Form Panel
3.4.1 Action Sheet
3.4.3 Date Picker
3.4.4 Message Box
126.96.36.199 Text Field
188.8.131.52 Number Field
184.108.40.206 Radio Field
220.127.116.11 Select Field
18.104.22.168 Toggle Field
22.214.171.124 Checkbox Field
126.96.36.199 Text Area Field
3.5.2 Data Manipulation
188.8.131.52 Set Field Values
184.108.40.206.2 From Manually Created Record
220.127.116.11.3 From Data Store Record
18.104.22.168 Get Field Values
22.214.171.124.1 Into Object
126.96.36.199.2 Into Related Record
188.8.131.52.3 Submit Form through HTTP Request
184.108.40.206 Using event & fn properties
220.127.116.11 Using shortened syntax
18.104.22.168 Inside Object while creating it
22.214.171.124 Inside Object that already exists using on()
126.96.36.199 Inside Class initialize() method using on()
188.8.131.52 Inside Class listeners property
184.108.40.206 Inside Class onEvent property
220.127.116.11 Using un()
18.104.22.168 Using property single
4.2 Custom Events
4.2.1 Create, fire and catch custom Event
4.3 Event handlers
4.3.1 Use Input Parameters
22.214.171.124 By referencing Model
126.96.36.199 Without referencing Model
188.8.131.52 With initial data - Using Array of Objects
184.108.40.206 With initial data - Using Array of Arrays
220.127.116.11 With Proxy
5.1.2 Add Records
18.104.22.168 Using Array of Objects
22.214.171.124 Using Array of Arrays
5.1.3 Remove Records
5.1.4 Load Data Store
126.96.36.199 load() with Callback
5.1.5 Sync Data Store
188.8.131.52 Send updated records to server
184.108.40.206 Send created records to server
220.127.116.11 Send deleted records to server
18.104.22.168 By defining only column names
22.214.171.124 By defining column names and types
126.96.36.199 Create custom validator
188.8.131.52 Has One
184.108.40.206 Belongs To
220.127.116.11 Has Many
5.3.3 Local Storage
5.3.4 Session Storage
6.1 Create Controller Class
6.1.1 Create Controller – In controller directory
6.1.2 Create Controller – In subfolder of controller directory
6.1.3 Create View Controller
6.1.4 Controller Application Controller
6.2.1 Create reference
6.3.1 Assign listener using reference
6.3.2 Assign listener using component query
6.4 Event handlers
6.4.1 Use Parameters
6.4.2 Use this.getMyRef()
Other books by this author
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them