Listview 需要帮助在Sharepoint中建立风险登记簿:)

Listview 需要帮助在Sharepoint中建立风险登记簿:),listview,sharepoint,sharepoint-2013,Listview,Sharepoint,Sharepoint 2013,嗨 需要创建一个类似sharepoint屏幕截图的列表,并使用这种极简风格和颜色格式。有人能帮我吗 亲切问候,, Ksenia我的测试json供您参考: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "de

需要创建一个类似sharepoint屏幕截图的列表,并使用这种极简风格和颜色格式。有人能帮我吗

亲切问候,,
Ksenia

我的测试json供您参考:

    {
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "debugMode": true,  
  "style": {
    "background-color": "=if(@currentField < 7, 'Green',if(@currentField< 12, 'Yellow',if(@currentField <16, 'Orange','Red')))",
    "color":"white", 
    "margin-bottom":"10px"  
  },
  "children":[
      {
         "elmType":"div",
         "style":{
            "margin-left":"10px"
         },
         "txtContent":"=@currentField"
      }
   ]
}
{
“$schema”:”https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
“elmType”:“div”,
“调试模式”:正确,
“风格”:{

“背景色”:“=if(@currentField<7,'绿色'),if(@currentField<12,'黄色'),if(@currentField)您在使用SharePoint-2013吗?