首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能绑定到“groupDisplayType”,因为它不是“ag-网格-角”的已知属性。

不能绑定到“groupDisplayType”,因为它不是“ag-网格-角”的已知属性。
EN

Stack Overflow用户
提问于 2021-12-29 12:24:25
回答 1查看 1.1K关注 0票数 0

我正在尝试绑定groupDisplayType属性,但看起来该属性在最近版本的Ag中被删除了。我正在使用25.1.0。

代码语言:javascript
复制
<ag-grid-angular
    [columnDefs]="columnDefs"
    [groupDisplayType]="groupDisplayType"
    /* other grid options ... */>
</ag-grid-angular>

错误:

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-30 00:36:55

groupDisplayType的概念仅在26.0.0版本的Ag网格中引入。

您需要升级到26+才能使用它。在使用较早版本的Ag时,始终使用与您的版本相关的文档,在本例中为:https://www.ag-grid.com/archive/25.1.0/angular-grid/

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70519368

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档