[]
Forguncy.Forguncy.PivotTableCellType
数据透视表单元格类型。
• new PivotTableCellType()
▸ Static
setCustomFunction(cellName
, customFunction
): void
自定义数据透视表单元格类型的值汇总方式。
Example
Forguncy.PivotTableCellType.setCustomFunction("pivottablecell", function (records, filedName) {
var count = records.length;
return "custom : " + count;
});
属性名 | 类型 | 说明 |
---|---|---|
cellName |
string |
数据透视表单元格的名称。 |
customFunction |
(records : any [], filedName : string ) => any |
汇总所选字段数据的处理函数。该函数接受两个参数:"records"是一组待汇总数据,"filedName"是汇总数据字段名称。返回值是汇总结果。 |
void