如何使行悬停覆盖选定的数据表

How to make row hover cover the selection in datatable?

本文关键字:数据表 覆盖 何使行 悬停      更新时间:2023-09-26

我想使用hover属性添加行悬停到Webix数据表,但默认情况下它不影响所选行。

我试图修改选择类的:hover,但当前的符号仅适用于悬停单元格(而我需要悬停行):

<style>
  .bluehover{
      background:lightblue;
  }
  .webix_row_select:hover{
      background:lightblue !important;
  }
</style>

片段。

直接修改

.webix_row_select:hover{
    background:lightblue !important;
}

.webix_row_select *:hover{
    background:lightblue;
}

更新片段

我认为@aisah的解决方案已经过时了。在webx8下,只需要设置hover:<css_class>和定义没有hover选择器的.<css_class>{background: <my_color>;}

片段

Webix文档