[英]How to make row hover cover the selection in datatable?
I want to add a row hover to the Webix datatable using hover
property, but it doesn't affect to the selected row by default.我想使用hover
属性向 Webix 数据表添加行悬停,但默认情况下它不会影响选定的行。
I've tried to modify the :hover
of the selection class, but the current notation works only for the hovered cell (while I need a hovered row):我试图修改选择类的:hover
,但当前的表示法仅适用于悬停的单元格(而我需要悬停的行):
<style>
.bluehover{
background:lightblue;
}
.webix_row_select:hover{
background:lightblue !important;
}
</style>
Will appreciate any help.将不胜感激任何帮助。
Just change只是改变
.webix_row_select:hover{
background:lightblue !important;
}
to到
.webix_row_select *:hover{
background:lightblue;
}
I think the solution from @aisah is not up to date anymore.我认为@aisah 的解决方案不再是最新的。 Under webix 8 one only needs to set hover:<css_class>
and define .<css_class>{background: <my_color>;}
without the hover
selector.在 webix 8 下,只需要设置hover:<css_class>
并定义.<css_class>{background: <my_color>;}
而不需要hover
选择器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.