【问题标题】:Ag Grid Module bindingAg Grid Module 绑定
【发布时间】:2020-03-29 05:38:04
【问题描述】:

无法绑定到modules,因为它不是ag-grid-angular 的已知属性

<ag-grid-angular
      #agGrid
      style="width: 100%; height: 100%;"
      id="myGrid"
      class="ag-theme-balham"
      [modules]="modules"
      [columnDefs]="columnDefs"
      [masterDetail]="true"
      [detailCellRendererParams]="detailCellRendererParams"
      [rowData]="rowData"
      (firstDataRendered)="onFirstDataRendered($event)"
      (gridReady)="onGridReady($event)"
    ></ag-grid-angular>

【问题讨论】:

  • 从 '@ag-grid-enterprise/all-modules' 导入 { GridOptions, Module, AllModules };书面 TS 代码:公共模块:Module[] = AllModules;

标签: javascript angular typescript ag-grid-angular


【解决方案1】:

解决“找不到模块[]”的问题=> 使用任何[] 数组 例如。公共模块:any[] = AllCommunityModules;

【讨论】:

    猜你喜欢
    • 2017-01-28
    • 2023-04-07
    • 2016-06-24
    • 2019-04-14
    • 2019-09-15
    • 2016-07-27
    • 2021-04-14
    • 2018-07-05
    • 2020-08-31
    相关资源
    最近更新 更多