有没有办法根据两列值为表格单元格着色?
我在文档中看到了这一点:
addNumericCondition(String condition, Integer value1, String align, String color, String style, String weight, String target)
这适用于一种条件,但如果您开始添加更多条件 - 未来的条件会覆盖它......这就是我正在做的事情:
var defaultRenderer = new qx.ui.table.cellrenderer.Conditional("left", "", "", "");
defaultRenderer.addNumericCondition("==", true, null, "#000000", null, null, "Verified");
defaultRenderer.addNumericCondition("==", false, null, "#000000", null, null, "Verified");
var nawasdNotVerified = new qx.ui.table.cellrenderer.Conditional("left", "", "", "");
nawasdNotVerified.addNumericCondition("==", true, null, "#FF0000", null, null, "NAWASed");
nawasdNotVerified.addNumericCondition("==", false, null, "#FF0000", null, null, "NAWASed");
table.getTableColumnModel().setDataCellRenderer( 0, defaultRenderer);
table.getTableColumnModel().setDataCellRenderer( 0, nawasdNotVerified );
);
谢谢您的帮助!