首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在编辑其他单元格时编辑Sharepoint online列表单元格

如何在编辑其他单元格时编辑Sharepoint online列表单元格
EN

Stack Overflow用户
提问于 2020-02-12 17:10:58
回答 1查看 58关注 0票数 1

我有一个SharePoint列表,我需要让"Ops Response“列中的每个单元格在操作员响应时突出显示为绿色,在输入条目但尚未有人响应时突出显示为红色。我附上了列表的屏幕截图

enter image description here

EN

回答 1

Stack Overflow用户

发布于 2020-02-13 17:35:35

单击下拉箭头并选择“设置此列的格式”

在右边显示的框中,粘贴下面引用的JSON。单击保存。

代码语言:javascript
复制
    {
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "debugMode": true,
  "elmType": "div",
  "attributes": {
    "class": "=if(@currentField != '', 'sp-field-severity--good', if(@currentField == '', 'sp-field-severity--severeWarning', ''))"
  },
  "children": [
    {
      "elmType": "span",
      "style": {
        "display": "inline-block",
        "padding": "0 4px"
      }
    },
    {
      "elmType": "span",
      "txtContent": "@currentField"
    }
  ]
}

最终

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60184717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档