要从 WebDataRocks "time" JSON 类型中删除 :ss 部分

To remove :ss part from WebDataRocks "time" JSON type

我只需要使用小时和分钟部分。如何在不使用 as :ss?

的情况下使用“time”JSON 类型

Web Data Rocks JSON types

"time" data type usage example which is referred from above document page.

我们使用 customizeCell 方法解决了这个问题,

function customizeCellFunction(cellBuilder, cellData){
  if(cellData && 
     cellData.hierarchy && 
     cellData.hierarchy.uniqueName==="Duration"     
  ){    
    cellBuilder.text = cellBuilder.text.slice(0,-3)  // HH:MM:ss => HH:MM 
  }
}

密码本 link : https://codepen.io/AKCAK/pen/KKgXVwp?editors=0010