ag-grid 是否支持列虚拟化? [英] Does ag-grid supports column virtualization?

查看:53
本文介绍了ag-grid 是否支持列虚拟化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在有很多列且大部分不在可视区域内的场景中,它特别重要.

解决方案

是的,如 文档,

<块引用>

默认情况下,网格使用虚拟化;网格的一种技术在用户滚动时绘制列和行.

然而,如果您希望禁用列虚拟化,您可以选择将 suppressColumnVirtualisation 输入属性设置为 true.您可以通过此处参考列/行属性.>

当您可能希望禁用列虚拟化时,可能有 2 种情况.

1) 自动调整大小列.这将确保所有列,而不仅仅是在屏幕上呈现的列,都将被调整大小.

2) 支持 a11y.这是为了防止键盘导航和屏幕阅读器出现任何潜在问题.

Its specially important in scenarios with lots of columns which most of them are not in viewable area.

解决方案

Yes, as stated on the documentation,

By default the grid uses virtualisation; a technique whereby the grid draws columns and rows as the user scrolls.

However, if you wish to disable column virtualization, you may choose to set the suppressColumnVirtualisation input property as true. You may refer to the column/row properties over here.

There may be 2 scenarios when you may wish to disable column virtualization.

1) Auto-sizing of all columns. This will ensure that all columns, and not just the columns which are rendered on the screen, will be resized.

2) Support for a11y. This is to prevent any potential issues for keyboard navigation and screen readers.

这篇关于ag-grid 是否支持列虚拟化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆