如何使ExtJS网格摘要功能显示在网格标题

时间:2016-08-31 12:41:57

标签: extjs extjs6 extjs-grid

我知道可以使用网格的摘要插件并将其停靠在网格的底部或顶部(在标题部分下方),但是我想知道是否可能以及如何将摘要放在上面网格标题..

感谢。

1 个答案:

答案 0 :(得分:1)

Evan Trimboli gave the correct hint: You can adjust the weight of the summaryBar. This does not take immediate effect at runtime, so to enforce the new weight being used, you will have to call moveDocked:

    panel.down('[itemId=summaryBar]').setWeight(99);
    panel.moveDocked(panel.down('[itemId=summaryBar]'), 'top');

https://fiddle.sencha.com/#fiddle/1g4c