我正在尝试绑定groupDisplayType属性,但看起来该属性在最近版本的Ag中被删除了。我正在使用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网站上有一些在线示例,但它们似乎使用的是较旧版本的ag-grid。
是否有其他方法可用于绑定groupDisplayType?
发布于 2021-12-30 00:36:55
groupDisplayType的概念仅在26.0.0版本的Ag网格中引入。
您需要升级到26+才能使用它。在使用较早版本的Ag时,始终使用与您的版本相关的文档,在本例中为:https://www.ag-grid.com/archive/25.1.0/angular-grid/
https://stackoverflow.com/questions/70519368
复制相似问题