Skip to content

@eightkk/vue-weave / core / treeGridCellContentFromTimeBucket

Function: treeGridCellContentFromTimeBucket() ​

treeGridCellContentFromTimeBucket(cell, extra?): TreeGridCellContent

Defined in: src/core/treeGrid.ts:1163

The TreeGrid content of one aggregateTimeBuckets cell. A loaded bucket with a value shows the value (a sum of no items is 0), a loaded bucket without a value (for example last with no items) is none, and a bucket that is not loaded keeps its unloaded, loading or failed status, so it never shows as 0. extra (label, tone, entities, editable) is added to cells with a value. Throws TypeError for something that is not a bucket cell.

Parameters ​

cell ​

TimeBucketCell

extra? ​

Omit<TreeGridCellContent, "value" | "status"> = {}

Returns ​

TreeGridCellContent

Released under the MIT License.