本文介绍了如何始终在ag-grid中显示水平滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以总是 在?这个问题在他们的GitHub页面上被问为,但他们似乎忽略了它(据我所知,它不是在)。

Is it possible to always show the horizontal scroll bar in an ag-grid? This question was asked as an issue on their GitHub page, but they seem to have ignored it (best I can tell, it was not created in their own issue tracker).

我愿意接受官方解决方案,CSS hacks以及任何真正有效的方法。

I'm open to official solutions, CSS hacks, anything that works really.

推荐答案

您可以通过CSS设置它

You could set it by CSS

.ag-body-viewport-wrapper.ag-layout-normal {
  overflow-x: scroll;
}

有关实时示例,请参阅此

For live example, refer to this Plunk

尝试从列菜单中删除列,您将看到滚动条仍在显示。

Try removing columns from column-menu and you'll see that scrollbar is getting displayed anyways.

这篇关于如何始终在ag-grid中显示水平滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 06:48