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

Designing custom views using DataView

Template and XTemplate provide the way to create elements using the template, placeholders, and data. There is one thing that is not really straightforward and this is the support for events. For example, if you want to handle the click on a rose to show a bigger picture of it, this is not very straightforward. We will have to work with the elements and register handlers for the different DOM events that we may be interested in. Also, there is no way to leverage the store. A Store is covered in more detail in the next chapter. For now, we can say that a store is a data structure that can hold a collection of records and that can be associated with components, such as DataView, to provide it the required data ...

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