制表符组行中的箭头颜色如何?

时间:2019-06-30 20:33:40

标签: javascript css tabulator

如何指定折叠/展开组的组行中箭头的颜色?另外,为列组摘要定义字体颜色的正确CSS代码是什么?

您可以在此处看到我尝试自定义的示例: https://jsfiddle.net/saleyn/a6hyxe24/74/

#equity-table .tabulator-footer {
  background-color:#333;
  color:#BBB;
  font-weight: normal !important;
}

在该代码段中,“总计”计算的颜色已更改,但是如何更改小计组摘要的颜色?

1 个答案:

答案 0 :(得分:1)

看看这个小提琴:https://jsfiddle.net/17dtamrq/

正确的CSS是:

.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
    border-top-color:red;
}

.tabulator-row.tabulator-group .tabulator-arrow {
    border-left-color: green;
}

// For the last row fore color
.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row {
    color: #f00;
}

// For the inner table sub-calcs
.tabulator-table .tabulator-row.tabulator-calcs > div {
    color: red;
}