tbar换行显示

tbar : [{
             xtype : 'hidden',
              id : 'action',
              value : 'QUERY_T_SYS_USER_ACTION'
          }, '用户姓名: ', {
              xtype : 'textfield',
              id : 'description',
              width : 120
         }, new Ext.Toolbar.TextItem("    "),
         '创建时间: ', {
             id : 'itemDateFrom',
             xtype : 'datefield',
             format : 'Y-m-d',
             readOnly : true
         }, '至', {
             id : 'itemDateTo',
             xtype : 'datefield',
             format : 'Y-m-d',
             readOnly : true
         }, '-', {
             text : '查询',
             iconCls : 'query',
             handler : function() {
                 store.load({
                            params : {
                                 start : 0,
                                 limit : 25,
                                 USER_NAME : Ext.get('description').dom.value,
                                 action : Ext.get('action').dom.value
                             }
                         })
             }
         }],
 listeners : {
     'render' : function() {
         var tbar = new Ext.Toolbar({
                     items : [{
                                 text : '新增',
                                 iconCls : 'add'
                             }, {
                                 text : '修改',
                                 iconCls : 'modify'
                             }, {
                                 text : '删除',
                                 iconCls : 'delete'
                             }, '-', {
                                 text : '导出PDF',
                                 iconCls : 'pdf'
                             }, {
                                 text : '导出Excel',
                                 iconCls : 'excel'
                             }, '-', {
                                 text : '打印',
                                 iconCls : 'print'
                             }]
                 });
         tbar.render(grid.tbar);
     }
 }
posted @ 2011-06-14 16:34  ﹎"該變ゾ  阅读(733)  评论(0编辑  收藏  举报