mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-25 15:00:18 +00:00
node: repo: use more stati-schema like code style to set grouping feature
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
faacb77fb4
commit
7705801f48
@ -370,6 +370,14 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
features: [
|
||||||
|
{
|
||||||
|
ftype: 'grouping',
|
||||||
|
groupHeaderTpl: '{[ "File: " + values.name ]} ({rows.length} repositor{[values.rows.length > 1 ? "ies" : "y"]})',
|
||||||
|
enableGroupingMenu: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
|
|
||||||
@ -387,16 +395,8 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
let groupingFeature = Ext.create('Ext.grid.feature.Grouping', {
|
|
||||||
groupHeaderTpl: '{[ "File: " + values.name ]} ({rows.length} ' +
|
|
||||||
'repositor{[values.rows.length > 1 ? "ies" : "y"]})',
|
|
||||||
enableGroupingMenu: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
store: store,
|
store: store,
|
||||||
features: [groupingFeature],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
Loading…
Reference in New Issue
Block a user