日期:2014-05-16 浏览次数:20371 次
Ext.define('ZHPT.view.infoPoint.List', { extend: 'Ext.Panel', alias: 'widget.infoPointList', title: '警用', // columns: [ // {header: 'Id', dataIndex: 'id', flex: 1}, // {header: 'PicUrl', dataIndex: 'picUrl', flex: 1} // ] items: Ext.create('Ext.view.View', { store: 'InfoPoints', tpl: [ '<tpl for=".">', '<div class="thumb-wrap" id="{id}">', '<div class="thumb"><img src="{picUrl}" /></div>', '</div>', '</tpl>', '<div class="x-clear"></div>' ], itemSelector: '.thumb-wrap' }) });
Ext.define('ACHUI.ux.CommonGrid',{ alias:'widget.CommonGrid', extend:'Ext.grid.Panel', initComponent:function(){ var bbar = Ext.create('Ext.pagetoolbar'{ store:this.store, pageSize : ACHUI_PAGE_LIMIT, displayInfo:true }) Ext.apply(this.bbar,bbar); Ext.applyIf(this, { bbar : bbar }); this.callParent(arguments); } });