O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Picking up your choice using Picker

In Chapter 2, Catering to Your Form-related Needs, we had talked about DatePicker, which shows the dates in the form of slots and allows us to pick a date. DatePicker is a specialized version of the Picker class. In this recipe we will see how to make use of this class.

Getting ready

Make sure you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.

Make sure you have created the ch06 folder inside the www folder.

How to do it...

Carry out the following steps:

  1. Create and open a new file named ch06_08.js and copy-paste the following code into it:
    Ext.application({ launch: function() { var picker = Ext.create('Ext.picker.Picker', { slots: [{ name : 'color', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required