Sencha Touch Cookbook

There is a newer version of this book available - Sencha Touch Cookbook, Second Edition
Sencha Touch Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Master cross platform application development
  • Incorporate geo location into your apps
  • Develop native looking web apps

Book Details

Language : English
Paperback : 350 pages [ 235mm x 191mm ]
Release Date : December 2011
ISBN : 1849515441
ISBN 13 : 9781849515443
Author(s) : Ajit Kumar
Topics and Technologies : All Books, Mobile Application Development, Mobile, Cookbooks, Open Source

Table of Contents

Chapter 1: Gear up for the Journey
Chapter 2: Catering to your Form Related Needs
Chapter 3: Containers and Layouts
Chapter 4: Building Custom Views
Chapter 5: Dealing with Data and Data Sources
Chapter 6: Adding the Components
Chapter 7: Adding Audio/Visual Appeal
Chapter 8: Taking your Application Offline
Chapter 9: Engaging Users by Responding to Events
Chapter 10: Increased Relevance Using Geolocation
  • Chapter 1: Gear up for the Journey
    • Introduction
    • Setting up the Android-based development environment
    • Setting up the iOS-based development environment
    • Setting up the Blackberry-based development environment
    • Setting up the browser-based development environment
    • Setting up the production environment
    • Detecting the device
    • Finding information about features that are supported in the current environment
    • Initializing your application
    • Tweaking your application to configure itself using profiles
    • Responding to the orientation change
    • Chapter 2: Catering to your Form Related Needs
      • Introduction
      • Getting your form ready with FormPanel
      • Working with search
      • Putting custom validation in the e-mail field
      • Working with dates using DatePicker
      • Making a field hidden
      • Working with the select field
      • Changing the value using Slider
      • Spinning the number wheel using Spinner
      • Toggling between your two choices
      • Checkbox and Checkbox group
      • Text and TextArea
      • Grouping fields with FieldSet
      • Validating your form
      • Chapter 3: Containers and Layouts
        • Introduction
        • Keeping the container lightweight
        • Working with Panel
        • Adding items to a container at runtime
        • Building wizards using CardLayout
        • Panel docking using DockLayout
        • Fitting into the container using FitLayout
        • Arranging your items horizontally using HBoxLayout
        • Arranging your items vertically using VBoxLayout
        • Mixing layouts
        • Chapter 4: Building Custom Views
          • Introduction
          • Basic HTML templating using Template
          • Using XTemplate for advanced templating
          • Conditional view rendering using XTemplate
          • Designing a custom view using DataView
          • Showing the filtered data
          • Responding to the user action
          • Chapter 5: Dealing with Data and Data Sources
            • Introduction
            • Creating models
            • Loading the form using a data model
            • Working with Store
            • Converting incoming JSON data into models using JsonReader
            • Converting incoming XML data into models using XmlReader
            • Validations in models
            • Defining the custom validation
            • Relating models using association
            • Persisting session-specific data using SessionStorageProxy
            • Persisting data using LocalStorageProxy
            • Accessing in-memory data using MemoryProxy
            • Loading data through AJAX using AjaxProxy
            • Sorting of the data
            • Data grouping
            • Filtering data
            • Using a cross-domain URL in your application
            • Chapter 6: Adding the Components
              • Introduction
              • Working with Button
              • Creating a sheet of buttons with ActionSheet
              • Carousel
              • Managing a list of data using List
              • Grouping items in a List
              • Navigating through a list of data using indexBar
              • Working with a list of nested data using NestedList
              • Picking your choice using Picker
              • Switching between multiple views using SegmentedButton
              • Working with Tab panels
              • Quicker access to application features using Toolbar
              • Creating a new component
              • Extending an existing component capability
              • Overriding a component behavior
              • Adding behavior to an existing component using plugins
              • Chapter 7: Adding Audio/Visual Appeal
                • Introduction
                • Animate me!
                • Ding-dong! You have a message!
                • Working with videos
                • Adding the chart support to your app
                • Working with an area chart
                • Generating a bar chart
                • Creating a column chart
                • Showing a group of bars and columns
                • Switching between stacked and grouped orientation
                • Highlighting and displaying an item detail
                • Creating a gauge chart
                • Creating a line chart
                • Creating a pie chart
                • Rotating the pies
                • Grouping the pies
                • Highlighting a pie
                • Using a radar chart
                • Using a scatter chart
                    • Chapter 10: Increased Relevance Using Geolocation
                      • Introduction
                      • Finding out your location
                      • Auto-update of your location
                      • Tracking direction and speed
                      • Hooking up Google Maps with your application
                      • Working with Google Maps options
                      • Mapping Geolocation on Google Maps

                      Ajit Kumar

                      Ajit Kumar started his IT career with Honeywell, Bangalore in the field of embedded systems and moved on to enterprise business applications (such as ERP) in his 13 years' career. From day one, he has been a staunch supporter and promoter of open source and believes strongly that open source is the way for a liberal, diversified, and democratic setup, such as India. He dreams, and continuously strives to ensure, that architecture, frameworks, and tools must facilitate software development at the speed of thought.

                      Ajit holds a Bachelor's degree in Computer Science and Engineering from the Bihar Institute of Technology, Sindri. He co-founded Walking Tree, which is based out of Hyderabad, India where he plays the role of CTO and works on fulfilling his vision.

                      Prior to writing this book, he worked on the following titles by Packt Publishing:

                      • ADempiere 3.6 Cookbook
                      • Sencha Touch Cookbook
                      • Sencha MVC Architecture
                      Sorry, we don't have any reviews for this title yet.

                      Code Downloads

                      Download the code and support files for this book.

                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      - 3 submitted: last submission 26 Aug 2013

                      Errata type: Code | Page number: 86

                      Should be:
                      new Ext.Application({


                      Errata type: Typo | Page number: 33

                      "Responding to the orientation change" is rephrased to "Responding to orientation change"


                      Errata type: Language | Page number: 31

                      Heading "Do not apply the profile at the time of application launch" is changed to "Applying profiles after application launch"

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      Sencha Touch Cookbook +    Mastering Concurrency in Go =
                      50% Off
                      the second eBook
                      Price for both: ₨502.80

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Set up your production environment
                      • Add life to your application using animations and media
                      • Make your application available offline.
                      • Engage users by responding to the events
                      • Map GeoLocation on Google Maps

                      In Detail

                      Sencha touch is a versatile HTML5-based framework for developing mobile web apps that look and feel native on touch screen devices, and with it you can write your code once and deploy it to both iOS and Android saving you both time and money.

                      The Sencha touch cookbook has a comprehensive selection of recipes covering everything from installation right through to HTML5 geo location.

                      The Sencha Touch Cookbook really is your one stop resource for cross platform HTML5 application development. It covers the basics such as setting up an iOS and Android development environment right through to much more complex development issues such as touch gestures, animation, rich media and geo location. Every recipe is practically focused. Maximum action. Minimum theory.


                      The book is written in a cookbook style, presenting examples in the style of recipes, allowing you to go directly to your topic of interest, or follow topics throughout a chapter to gain in-depth knowledge.

                      Who this book is for

                      This book is ideal for anyone who wants to gain the practical knowledge involved in using Sencha Touch mobile web application framework to make attractive web apps for mobiles. If you have some familiarity with HTML and CSS, then this book is for you. This book will give designers the skills they need to implement their ideas, and provide developers with creative inspiration through practical examples. It is assumed that you know how to use touch screens, touch events, WebKit on mobile systems, Apple iOS, and Google Android for Mobiles.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software