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