X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/examples/view/list-view.js diff --git a/examples/view/list-view.js b/examples/view/list-view.js index fc2ea833..f59c1b24 100644 --- a/examples/view/list-view.js +++ b/examples/view/list-view.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.0.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 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' }] });