【发布时间】:2020-12-18 05:01:40
【问题描述】:
在 ag-Grid documentation 上,提到了很多关于这个 GridOptions 接口。
Grid Properties、Grid Events、Grid Callbacks,所有“声称”
this options are available through the GridOptions interface
例如,我设法通过以下方式访问了 columnDefs 属性而没有任何“使用”此 gridOptions:
.html
<ag-grid-angular
style="margin: auto;
width: 80%; height: 70%;
#agGrid
class="ag-theme-material"
[rowData]="rowData"
[columnDefs]="columnDefs"
>
</ag-grid-angular>
.ts
private columnDefs;
constructor() {
this.columnDefs = ...; // columns array
}
但是,我不知道如何在不调用此 gridOptions 的情况下集成某些功能,例如 api 提供的accessing row nodes。
我如何提及/到达这个 gridOptions?
【问题讨论】:
标签: typescript ag-grid