简体   繁体   English

鼠标移至Ag网格上方时突出显示行

[英]row highlight on mouse over ag grid react

I was trying to highlight a row on mouse over in ag grid. 我试图突出显示鼠标悬停在农业网格上的一行。 I am using React framework for the same. 我正在使用React框架。 The React cell styling examples are all related to conditionally rendering styles but none of them are focussed with styling with mouse over. React单元样式示例都与条件渲染样式有关,但是它们都没有集中在鼠标悬停的样式上。 The link I followed was link 我关注的链接是链接

I have also checked answers over github where they mentioned to use the ag-row-hover class. 我还在github上检查了他们提到的使用ag-row-hover类的答案。 Where should I be rendering this css class? 我应该在哪里渲染此CSS类?

Put the below CSS in your local CSS file to override the .ag-row-hover class. 将以下CSS放入本地CSS文件中,以覆盖.ag-row-hover类。

If you are using .ag-theme-balham theme then 如果您使用的是.ag-theme-balham主题,则

.ag-theme-balham .ag-row-hover{

    background-color: #ECF0F1;
}

If you are using .ag-theme-fresh theme then 如果您使用的是.ag-theme-fresh主题,则

.ag-theme-fresh .ag-row-hover{

    background-color: #ECF0F1;
}

and so on... 等等...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM