![](/img/trans.png)
[英]Can't bind to 'gridOptions' since it isn't a known property of 'ag-grid-angular' (Angular4)
[英]Can't bind to 'groupDisplayType' since it isn't a known property of 'ag-grid-angular'
我正在嘗試綁定 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
?
groupDisplayType
的概念僅在26.0.0
版本中引入 Ag Grid。
您需要升級到 26+ 才能使用它。 使用舊版本的 Ag Grid 時,請始終使用與您的版本相關的文檔,在這種情況下: https://www.ag-grid.com/archive/25.1.0/angular-grid/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.