X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/examples/view/list-view.js diff --git a/examples/view/list-view.js b/examples/view/list-view.js index 903a357e..6088ae16 100644 --- a/examples/view/list-view.js +++ b/examples/view/list-view.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.0.3 + * Ext JS Library 3.1.0 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license @@ -14,7 +14,7 @@ Ext.onReady(function(){ }); store.load(); - var listView = new Ext.ListView({ + var listView = new Ext.list.ListView({ store: store, multiSelect: true, emptyText: 'No images to display', @@ -26,14 +26,16 @@ Ext.onReady(function(){ dataIndex: 'name' },{ header: 'Last Modified', + xtype: 'datecolumn', + format: 'm-d h:i a', width: .35, - dataIndex: 'lastmod', - tpl: '{lastmod:date("m-d h:i a")}' + dataIndex: 'lastmod' },{ header: 'Size', dataIndex: 'size', tpl: '{size:fileSize}', - align: 'right' + align: 'right', + cls: 'listview-filesize' }] });