我正在嘗試系結 groupDisplayType 屬性,但該屬性似乎已在最新版本的 Ag-Grid 中洗掉。我正在使用 25.1.0。
<ag-grid-angular
[columnDefs]="columnDefs"
[groupDisplayType]="groupDisplayType"
/* other grid options ... */>
</ag-grid-angular>
錯誤:
NG8002: Can't bind to 'groupDisplayType' since it isn't a known property of 'ag-grid-angular'.
1. If 'ag-grid-angular' is an Angular component and it has 'groupDisplayType' input, then verify that it is part of this module.
2. If 'ag-grid-angular' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
6 [groupDisplayType]="groupDisplayType"
Ag-grid 網站上有一些在線示例,但它們似乎使用的是較舊版本的 ag-grid。
是否有任何替代方法可用于系結groupDisplayType?
uj5u.com熱心網友回復:
的概念groupDisplayType僅在版本26.0.0.
您需要升級到 26 才能使用它。使用舊版本的 Ag Grid 時,請始終使用與您的版本相關的檔案,在這種情況下:https : //www.ag-grid.com/archive/25.1.0/angular-grid/
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/398058.html
上一篇:安裝節點模塊時出錯
