English 中文(简体)
我怎么会把一个子子添加到底座。
原标题:How do I add a button to the bottom bar in extjs?
  • 时间:2012-05-03 08:05:23
  •  标签:
  • button
  • extjs

我试图在电网小组中添加一个附有以下代码的案文和一个纽州:

        var shopIdInput = new Ext.form.TextField({
            emptyText: "请输入商户Id",
            width: 200
        });

        var deleteOneShopCacheBtn = new Ext.Button({
            text :  删除商户缓存 ,
            handler: deleteOneShopCache,
            minWidth : 100,
            cls: "delBtn"
        });
                 ......
        var grid = new Ext.grid.GridPanel({
            store: store,
            columns: columns,
            bbar: [shopIdInput, deleteOneShopCacheBtn],
            buttons: [clearRedressWordCacheBtn, clearSplitWordCacheBtn, clearRegionCacheBtn, clearCategoryCacheBtn, runCommandBtn],
            items: [commandForm],
            buttonAlign:  center ,
            stripeRows: true,
            autoExpandColumn:  serverUrl ,
            //title:  批量执行指令 ,
            sm: checkboxSelect,
            frame: true,
            autoHeight: true,
            enableColumnHide: false,
            renderTo :  serverInfoList 
        });

但纽芬兰删除 位于Bbar的1个ShopCacheBtn 只像一个共同的纽芬兰语,在纽特州就座。 它改变了在潮.的状态。 我试图通过确定财产cl锁和失败来解决这个问题,因此我可以做些什么?

最佳回答

I usually just add an icon to the button which helps it stand out. so just set a value for iconCls: mybuttonicon

and in your css .mybuttonicon { background-image: url(../path/to/icon) !important;}

问题回答

专栏允许你指定其他类别,以适用于贵方的物体(如果是 but子的话),但NOT却在根据对.的 h变而改变。

你们需要的是删除的听众。 1ShopCacheBtn, 并聆听了花招活动(还见Sencha ,关于纽州对事件清单的答复)。 你们可以冒着一种功能,使你可以像你想要的一样看待你。 我目前正在工作。 如果在我晚上回家时你仍然有这个问题的话,我可以张贴一些法典。

Also see following example:
Button click event Ext JS }





相关问题
ExtJS load form items/fields from database

I am using ExtJS 3 here. I would like to populate a formpanel from database with fields to be submitted. Basically, I don t know witch fields my form will have and I want to generate all formpanel ...

How to use Ext JS for role based application

I am planning to use Ext JS for a large application. The application s features are role based. When user login, they only see menu and screen features related to them. My server side technology will ...

Dynamically adding a TabPanel to a Panel Region

I have a Panel layout with a TreePanel in one region. A user clicks on an node in the tree and a TabPanel should be displayed in another region with information, editing tools etc. for that tree node....

How to embed Json result within Extjs Panel?

I have some issues with Json result and embed it within the html of the Extjs Panel. Here s that I have managed to get so far. myPanel is embedded within a mainPanel, and I have some shows/hide of ...

Ajax data update. Extjs

I need to keep certain data ( in a grid) up to date and was gonna do a poll to the server every 15 seocnds or so to get the data and refresh the grid, however it feels a bit dirty ( the grid will have ...

Better way to call superclass method in ExtJS

All the ExtJS documentation and examples I have read suggest calling superclass methods like this: MyApp.MyPanel = Ext.extend(Ext.Panel, { initComponent: function() { // do something MyPanel ...

Merged Headers in Ext JS Grid

Is it possible to have two headers in Ext JS grids? I have to show my grid as grouped data.. for example product types and products. In my case I need a grid like this: Field | Product Type A ...

热门标签