我在 phpGrid 上有一个表格,有在单元格上添加条件格式的功能,但我需要更多自适应选项......当在任何行中定义的单元格彼此相等时,我想添加格式
例如,当在任何行 n 单元格 nR == nT 我想让它们变成红色时
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg->set_conditional_format("orderNumber","CELL",array( "condition"=>"eq","value"=>"10107","css"=> array("color"=>"#ffffff","background-color"=>"green")));
// that is in documentation and i have tried this
$dg->set_conditional_format("orderNumber","CELL",array( "condition"=>"eq","value"=>$dg->columns['orderNumber'] ,"css"=> array("color"=>"#ffffff","background-color"=>"green")));