Sencha Touch Cookbook
eBook - ePub

Sencha Touch Cookbook

  1. 418 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Sencha Touch Cookbook

About this book

In Detail

Sencha Touch is one of the most popular HTML5 and JavaScript frameworks for building touch-based mobile devices. Using Sencha Touch, you can create applications for touch mobile devices with ease, and once created, the same application works on multiple platforms – iOS, Android, Blackberry – without having to change anything.

Sencha Touch Cookbook (2nd edition) is a practical, hands-on guide with easy to follow recipes that provide you with clear, step-by-step instructions, which will help you take complete advantage of the power of Sencha Touch 2 and will help you to build amazing applications for the mobile world.

Sencha Touch Cookbook (2nd edition) starts by showing you how to set up your project for development, then walks through building, packaging, and running it in a browser, emulator, or a real device. With the groundwork set, the subsequent recipes of the book take you through the different UI components offered by the framework and explains how to use them, when to use them, and, if needed, how to extend them for your own application need.

You will also learn how to model your client side data, load data from different data sources, and use them on the data-centric UI components. The later parts of the book cover the practical day-to-day problems like how to create a custom view, how to take your application offline and support automatic sync, how to utilize the Geolocation to learn more about the user, how to utilize device features such as camera, contact, orientation, and how to link your application behaviour with the device buttons such as Back, Search, and so on. At the end, the book shows you how to create native packages without using PhoneGap/Cordova using Sencha Cmd.

Using this book, you will learn everything about using Sencha Touch classes and components to build mobile applications that can run across multiple platforms.

Approach

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

Sencha Touch Cookbook (2nd edition) is great for developers who are new to Sencha Touch and who are looking to get a good hold on what the Sencha Touch framework offers and how to use it to build a great touch-based mobile application running on different platforms. It is assumed that you will have some experience in HTML, CSS, DOM, and JavaScript. To truly appreciate the framework capability and take full advantage of the book, readers are expected to have one or more mobile devices.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2013
Edition
2
eBook ISBN
9781782169192

Sencha Touch Cookbook Second Edition


Table of Contents

Sencha Touch Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Gear Up for the Journey
Introduction
Setting up the Android-based development environment
Getting ready
How to do it...
How it works...
Setting up the iOS-based development environment
Getting ready
How to do it...
How it works...
See also
Setting up the BlackBerry-based development environment
Getting ready
How to do it...
How it works...
See also
Setting up a browser-based development environment
Getting ready
How to do it...
How it works...
See also
Detecting the device
How to do it...
How it works...
See also
Finding features that are supported in the current environment
How to do it...
How it works...
See also
Letting your application configure itself using profiles
How to do it...
How it works...
See also
Responding to orientation changes
How to do it...
How it works...
See also
2. Catering to Your Form-related Needs
Introduction
Getting your form ready with form panels
Getting ready
How to do it...
How it works...
There's more...
Standard submit
Submitting on field action
Post-submission handling
Reading form data
Loading data in the form fields
See also
Working with the search field
Getting ready
How to do it...
How it works...
There's more...
Using a placeholder
See also
Applying custom validation in the e-mail field
Getting ready
How to do it...
How it works...
See also
Working with dates using the date picker
Getting ready
How to do it...
How it works...
There's more...
Setting the default date to the current date
Setting the default date to a particular date
Changing the slot order
Setting the picker date range
See also
Making a field hidden
Getting ready
How to do it...
How it works...
There's more...
Showing/hiding a field at runtime
See also
Working with the select field
Getting ready
How to do it...
How it works...
There's more...
Using a custom display value
See also
Changing a value using slider
Getting ready
How to do it...
How it works...
See also
Spinning the number wheel using spinner
Getting ready
How to do it...
How it works...
There's more...
Recycling the values
See also
Toggling between your two choices
Getting ready
How to do it...
How it works...
See also
Checkbox and checkbox groups
Getting ready
How to do it...
How it works...
See also
Text and text area
Getting ready
How to do it...
How it works...
There's more...
Limiting the number of input characters
See also
Grouping fields with fieldset
Getting ready
How to do it...
How it works...
There's more...
Adding instructions
See also
Validating your form
Getting ready
How to do it...
How it works...
See also
3. Containers and Layouts
Introduction
Keeping your container lightweight
Getting ready
How to do it...
How it works...
There's more...
Using layout
See also
Working with Panel
Getting ready
How to do it...
How it works...
There's more...
Docking items
Using layouts
Panel used as an overlay
See also
Adding items to a container at runtime
Getting ready
How to do it...
How it works...
There's more...
Inserting at a specific position
Removing an item
Hiding/showing
See also
Building wizards using CardLayout
Getting ready
How to do it...
How it works...
There's more...
Changing the default active item
Animating cards
See also
Docking items
Getting ready
How to do it...
How it works...
See also
Fitting into the container using FitLayout
Getting ready
How to do it...
How it works...
See also
Arranging your items horizontally using HBoxLayout
Getting ready
How to do it...
How it works...
There's more...
Aligning the component vertically
Aligning the component horizontally
See also
Arranging your items vertically using VBoxLayout
Getting ready
How to do it...
How it works...
There's more...
Aligning the component horizontally
Aligning the component vertically
See also
Mixing l...

Table of contents

  1. Sencha Touch Cookbook Second Edition

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Sencha Touch Cookbook by Ajit Kumar in PDF and/or ePUB format, as well as other popular books in Computer Science & Digital Media. We have over one million books available in our catalogue for you to explore.