【发布时间】:2019-02-17 19:21:51
【问题描述】:
我在 Angular 6 应用程序中使用 ag-grid 作为表格。下面是我对 ag-grid 的 gridOptions 配置。
gridOptions: GridOptions = {
rowBuffer: 0,
rowSelection: "multiple",
rowModelType: "infinite",
cacheOverflowSize: 2,
maxConcurrentDatasourceRequests: 2,
infiniteInitialRowCount: 1,
maxBlocksInCache: 2
};
在浏览 ag-grid 的 documentation 时,我无法找到用于无限滚动的自定义页面大小。
我的要求是页面大小为 20 即
startRow = 0 和 endRow = 20 和 pageSize = 20 //我的要求
ag-grid 提供的内容如下:
startRow = 0 和 endRow = 100 和 pageSize = 100 //默认配置
有什么办法可以改变 ag-grid 的默认配置。谁能帮帮我!
【问题讨论】:
标签: angular ag-grid ag-grid-ng2