@univerjs-pro/engine-pivot v0.5.4
Function: cloneLabelFieldToValueField()
function cloneLabelFieldToValueField(labelField, keepUnknown?): PivotTableValueField
Defined in: pivot/table-field.ts:271
Clone the label field to a value field.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
labelField | PivotTableLabelField | undefined | The label field to be cloned. |
keepUnknown ? | boolean | true | Whether to keep the unknown property of the label field. the default value is true. |
Returns
- the value field may has sortInfo and filterInfo in the property lossLessProperty.