0

我不知道 JSLink,所以我很难弄清楚这一点。我有一个下拉菜单列,如果用户选择其中一个下拉菜单(可以说它称为“Peer Review - Rushed”),我希望单元格显示红色,或者如果需要,甚至显示整行。我怎么做?

我有这个适用于现代用户界面:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "span",
  "debugMode": true,
  "txtContent": "@currentField",
  "style": {
    "color": "=if(@currentField == 'Peer Review - Rushed', 'Red', if(@currentField == 'Peer Review - Slow', 'Blue', 'Black'))"
  }
}
4

0 回答 0