this.group = new Ext.ux.grid.ColumnHeaderGroup({
              rows: [[{ header: '实时',colspan:2,align: 'center'}],[{ header: '成功',colspan:2,align: 'center'},}],[{ header: '失败',colspan:2,align: 'center'}]]
          });如何在两行文字之间加上横杠  →→→   -----------------------               ExtJSJavaScript

解决方案 »

  1.   

    this.group = new Ext.ux.grid.ColumnHeaderGroup({
                  rows: [[{ header: '实时',colspan:2,align: 'center'}],
    [{ header: '成功',colspan:2,align: 'center'},}],
    [{ header: '失败',colspan:2,align: 'center'}]]
              });代码如上
      

  2.   

    this.group = new Ext.ux.grid.ColumnHeaderGroup({
                          rows: [[{ header: '实时',colspan:4,align: 'center'}],
    [{ header: '成功',colspan:2,align: 'center'},}],
    [{ header: '失败',colspan:2,align: 'center'}]]
                      });
      

  3.   

    {
        header: 'Category Header',
        headers: [{
            header: 'First Sub Header',
            dataIndex: 'subHeaderField1'
        }, {
            header: 'Second Sub Header',
            dataIndex: 'subHeaderField2'
        }]
    }