在我的extjs6数据透视网格中,如何按聚合列自动排序?我试着把方向放在聚合部分而没有运气。有什么建议吗?
我想按totalPL
排序 title: 'Portfolio',
xtype: 'pivotgrid',
itemId: 'pivotGridId',
cls: 'custom-gridPivot2',
//ui: 'featuredpanel-framed',
matrix: {
viewLayoutType: 'outline'
},
startRowGroupsCollapsed: false,
multiSelect: true,
enableLocking: false,
viewConfig: {
trackOver: true,
stripeRows: true
},
bind: {
store: '{myDailyAttributionBreakdownStore}'
},
aggregate: [{
dataIndex: 'totalPL',
header: 'TotalP&L',
aggregator: 'sum',
renderer: 'renderFormatCurrency',
align: 'right',
width: 100,
direction: 'ASC'
}],
leftAxis: [
{
width: 75,
dataIndex: 'sector',
header: 'Sector'
},
{
width: 100,
dataIndex: 'shortDesc',
header: 'Market'
}
],
topAxis: [
]