【发布时间】:2016-09-14 06:46:04
【问题描述】:
假设我需要为我的ag-grid 设置height。我必须在列配置上设置它,就像那样(在 Angular 控制器中):
this.myAgGridOptions = {
columnDefs: ...,
rowData: ...,
headerHeight: 42,
rowHeight: 42
}
现在,如果我的整个应用程序中有 10 个不同的 agGrid,有没有办法为所有这些属性设置一次,而不是为每个 agGrid 声明设置一次?
我的问题是针对 Angular 1 版本的 AgGrid,但如果该解决方案可以用于任何版本的 AgGrid,那就太好了。
谢谢
【问题讨论】: