Extjs grid中tbar(按钮栏Toolbar)的按钮显示成多行的方法总结

时间:2025-04-04 09:55:09
//----------------grid  wafer按钮事件----------------
var GridtbarWafer = new ({height:27});
function addButtonWafer1() {
    if () {
        var buttons = ();
        for (var i = 0; i < 5; i++) {
            var tmpbutton = (buttons[i]);
            (tmpbutton);
        }
    } else {
        ('render', addButtonWafer1);
    }
}
;
('AfterLoad', addButtonWafer1);
var GridtbarWafer2 = new ({height:27});
function addButtonWafer() {
    if () {
        var buttons = ();
        for (var i = 5; i < ; i++) {
            var tmpbutton = (buttons[i]);
            (tmpbutton);
        }
    } else {
        ('render', addButtonWafer);
    }
}
;
('AfterLoad', addButtonWafer);
//具体Wafer 的grid
var CustomerWaferGrid = new ({
    id : 'CustomerWaferGrid',
    ds : dsCustomerWaferList,
    cm : cmCustomerWaferList,
    sm : smCustomerWaferList,
    tbar : GridtbarWafer,
        listeners : {
         'render' : function() {
          ();
         }
        }