【问题标题】:ExtJS4 toolbar position of new button新按钮的 ExtJS4 工具栏位置
【发布时间】:2014-05-12 16:34:44
【问题描述】:

我正在向 htmleditor 工具栏添加一个按钮。例如:

this.cmp.getToolbar().add([
    {
        iconCls: 'custom-btn-clear',
        handler: this.remove_all_tags,
        scope: this,
        overflowText: 'Remove formatting'
    }
]);

我需要把它放在第一个位置(从左侧开始)。如何指定按钮位置?

【问题讨论】:

    标签: extjs


    【解决方案1】:

    使用insert 方法。

    myToolbar.insert(0, {});

    【讨论】:

      猜你喜欢
      • 2012-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-20
      • 1970-01-01
      • 1970-01-01
      • 2011-07-15
      • 1970-01-01
      相关资源
      最近更新 更多