📜  serenity 条件格式网格行 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:25.244000             🧑  作者: Mango

代码示例1
protected getItemCssClass(item: Module.EntityRow, index: number): string {
  let klass: string = "";
  if (item.Code >= 50) klass += " high-price";
  else if (+item.Code >= 0) klass += " low-price";
  return Q.trimToNull(klass);
}