ShieldUI Grid-条件格式问题
ShieldUI Grid-conditional formatting issue
如何使用条件格式更改单元格的值,每次加载网格时单元格可能位于不同的位置?
https://demos.shieldui.com/web/grid-general/conditional-formatting
我有一些列不在数据中,因此它们最终的值为 null。
我想用空白替换它。
看来columnTemplate选项正是你所需要的
您可以这样定义您的列:
{
field: "unknown", title: "Unknown",
columnTemplate: function(cell, item, index) { return item || ""; }
}
如何使用条件格式更改单元格的值,每次加载网格时单元格可能位于不同的位置?
https://demos.shieldui.com/web/grid-general/conditional-formatting
我有一些列不在数据中,因此它们最终的值为 null。 我想用空白替换它。
看来columnTemplate选项正是你所需要的
您可以这样定义您的列:
{
field: "unknown", title: "Unknown",
columnTemplate: function(cell, item, index) { return item || ""; }
}