angular - enableRtl = true 时 rowGrouped 项的 applyColumnState 不正确
问题描述
我正在使用 enableRtl: true 属性,我想保存网格状态。在 enableRtl: true 中,第一列在索引为 0 的右侧,我用它来对行进行分组。我保存了这个网格状态,但是在加载它时,只有这一列移动到左侧而不是右侧,因为 rowGroupIndex = 0 !!
现在有什么办法可以解决我的问题吗?
// 保存代码
localStorage[this.gridUniqueKey] = JSON.stringify(gridOptions.columnApi.getColumnState());
// 加载
columnState = JSON.parse(localStorage[this.gridUniqueKey]);
gridOptions.columnApi.applyColumnState({
state: columnState,
applyOrder: true,
});
解决方案
推荐阅读
- linux - 配置 ELK 堆栈
- dailymotion-api - 通过 API 将缩略图上传到 Dailymotion 的正确权限
- docker - 在“hub.docker.com”注册表中推送 docker 镜像的权限错误
- wordpress - 当 Wordpress Visible 上的尺寸更改为 979width 时,标题徽标消失?
- mysql - 选择 ifnull() 不会让查询中超过 1 列
- laravel - 访问其他表中的值,Eloquent Laravel
- python - 将排序的数字列表(如 [1,2,3,4])转换为指定范围的字符串,如 python 中的“1-4”
- python - 更新行时,如何同时保留旧值并更新链接表?
- typescript - MonoTypeOperatorFunction<{}> Rxjs6 类型上不存在属性“distinctUntilChanged()”
- python - 运行 python 代码时 Cuda 内存不足