]>
git.proxmox.com Git - sencha-touch.git/blob - src/examples/kitchensink/app/view/BasicList.js
2 * Demonstrates how to create a simple List based on inline data.
3 * First we create a simple Contact model with first and last name fields, then we create a Store to contain
4 * the data, finally we create the List itself, which gets its data out of the Store
7 Ext
.define('Kitchensink.view.BasicList', {
8 extend
: 'Ext.Container',
9 requires
: ['Kitchensink.model.Contact'],
11 layout
: Ext
.os
.deviceType
== 'Phone' ? 'fit' : {
18 width
: Ext
.os
.deviceType
== 'Phone' ? null : '50%',
19 height
: Ext
.os
.deviceType
== 'Phone' ? null : '80%',
22 itemTpl
: '{firstName} {lastName}'