O'Reilly logo

Ext JS Application Development Blueprints by Colin Ramsay

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

Product placement

Here's the code for the list of products:

// app/view/product/List.js Ext.define('Alcohology.view.product.List', { extend: 'Ext.Panel', controller: 'product', xtype: 'product-list', cls: 'product-list', viewModel: 'product', tbar: [ { xtype: 'combo', store: Ext.create('Ext.data.Store', { fields: ['text', 'field', 'direction'], data : [ { text: 'Date Added', property: 'id', direction: 'DESC' }, { text: 'Name A-Z', property: 'name', direction: 'ASC' }, { text: 'Name Z-A', property: 'name', direction: 'DESC' }, { text: 'Price ASC', property: 'price', direction: 'ASC' } ] }), displayField: 'text', queryMode: 'local', fieldLabel: 'Sort By', emptyText: 'None', editable: false } ], items: [ { xtype: 'dataview', itemId: 'productListView', ...

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