@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs
Function: cloneLabelFieldToValueField()
function cloneLabelFieldToValueField(labelField, keepUnknown?): PivotTableValueField
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.
Defined in
pivot/table-field.ts:271