问题描述
我只需要使用小时和分钟部分。如何在没有 as :ss
的情况下使用“时间”JSON 类型?
"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
}
}