我正在使用 angular-slickgrid:“^2.17.11”。我对它很陌生。这是我配置网格选项以显示分页和每页项目的方式。在配置中,我将页面大小指定为 [5, 10, 15, 20, 25, 50, 75] 但在 UI 中它是 [5, 10, 15, 20, 25, 50, 75, 75, 100]。不知道它是如何发生的。我错过了什么吗?
{
enableSorting: true,
enableFiltering: true,
enablePagination: true,
pagination: {
pageSizes: [5, 10, 15, 20, 25, 50, 75],
pageSize: 5
},
autoResize: {
containerId: 'tableSection_details',
sidePadding: 5
},
alwaysShowVerticalScroll: false,
excelExportOptions: {
filename: "DoC",
sheetName: this._exportSheetName
},
enableExcelExport: true,
gridMenu: {
onCommand: (e, args) => {
if (args.command === 'toggle-preheader') {
// in addition to the grid menu pre-header toggling (internally), we will also clear grouping
this.clearGrouping();
}
},
},
enableDraggableGrouping: true,
createPreHeaderPanel: true,
showPreHeaderPanel: true,
preHeaderPanelHeight: 40,
draggableGrouping: {
dropPlaceHolderText: 'Drop column header here to group by the column',
deleteIconCssClass: 'fa fa-times',
onGroupChanged: (e, args) => this.onGroupChanged(args),
onExtensionRegistered: (extension) => this.draggableGroupingPlugin = extension,
}
}