@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs


Class: PivotTableLabelField

Represents a label field in a pivot table.

Extends

Constructors

new PivotTableLabelField()

new PivotTableLabelField(
   dataFieldId, 
   id, 
   displayName, 
   sourceName): PivotTableLabelField

Parameters

ParameterTypeDefault value
dataFieldIdstringundefined
idstringundefined
displayNamestring''
sourceNamestringundefined

Returns

PivotTableLabelField

Overrides

PivotTableFieldBase.constructor

Defined in

pivot/table-field.ts:185

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
dataFieldIdreadonlystringThe base data field id of the field.PivotTableFieldBase.dataFieldIdpivot/table-field.ts:38
displayNamepublicstringThe display name of the field. the default value is the data field name.PivotTableFieldBase.displayNamepivot/table-field.ts:44
filterInfopublicIPivotTableFilterInfo--pivot/table-field.ts:184
formatpublicundefined | string-PivotTableFieldBase.formatpivot/table-field.ts:45
idreadonlystringThe unique identifier of the field.PivotTableFieldBase.idpivot/table-field.ts:39
lossLessProperty?publicanythr public object to save the property not defined but should be saved.PivotTableFieldBase.lossLessPropertypivot/table-field.ts:47
sortInfopublicundefined | IPivotTableSortInfo--pivot/table-field.ts:183
sourceNamereadonlystring-PivotTableFieldBase.sourceNamepivot/table-field.ts:40

Methods

fromJSON()

abstract fromJSON(data): void

Parameters

ParameterTypeDescription
dataIPivotTableLabelFieldJSONthe data config a field.

Returns

void

Overrides

PivotTableFieldBase.fromJSON

Defined in

pivot/table-field.ts:247


getDataFieldId()

getDataFieldId(): string

Returns

string

Inherited from

PivotTableFieldBase.getDataFieldId

Defined in

pivot/table-field.ts:78


getDisplayName()

getDisplayName(): string

Returns

string

Inherited from

PivotTableFieldBase.getDisplayName

Defined in

pivot/table-field.ts:94


getFilterInfo()

getFilterInfo(): IPivotTableFilterInfo

Returns

IPivotTableFilterInfo

The filter information of the label field.

Method

getFilterInfo

Description

Get the filter information of the label field.

Defined in

pivot/table-field.ts:221


getFormat()

getFormat(): undefined | string

Returns

undefined | string

Inherited from

PivotTableFieldBase.getFormat

Defined in

pivot/table-field.ts:82


getId()

getId(): string

Returns

string

Inherited from

PivotTableFieldBase.getId

Defined in

pivot/table-field.ts:56


getQueryData()

abstract getQueryData(): IPivotTableLabelFieldQueryData

Returns

IPivotTableLabelFieldQueryData

  • the query data of the field.

Overrides

PivotTableFieldBase.getQueryData

Defined in

pivot/table-field.ts:225


getSortInfo()

getSortInfo(): undefined | IPivotTableSortInfo

Returns

undefined | IPivotTableSortInfo

The sort information of the label field.

Method

getSortInfo

Description

Get the sort information of the label field.

Defined in

pivot/table-field.ts:203


getSourceName()

getSourceName(): string
  • the read only name in collection

Returns

string

  • the source name of the field, which is the name of the data field.

Inherited from

PivotTableFieldBase.getSourceName

Defined in

pivot/table-field.ts:64


setDataFieldId()

setDataFieldId(dataFieldId): void

Parameters

ParameterType
dataFieldIdstring

Returns

void

Inherited from

PivotTableFieldBase.setDataFieldId

Defined in

pivot/table-field.ts:73


setDisplayName()

setDisplayName(displayName): void

Parameters

ParameterType
displayNamestring

Returns

void

Inherited from

PivotTableFieldBase.setDisplayName

Defined in

pivot/table-field.ts:90


setFilterInfo()

setFilterInfo(filterInfo): void

Parameters

ParameterTypeDescription
filterInfoIPivotTableFilterInfoThe filter information of the label field. the manual filter, custom filter or value filter is opposite to each other.

Returns

void

Method

setFilterInfo

Description

Set the filter information of the label field. Only one of the manual filter, custom filter or value filter can be effective.

Defined in

pivot/table-field.ts:212


setFormat()

setFormat(format): void

Parameters

ParameterType
formatundefined | string

Returns

void

Inherited from

PivotTableFieldBase.setFormat

Defined in

pivot/table-field.ts:86


setSortInfo()

setSortInfo(sortInfo): void

Parameters

ParameterTypeDescription
sortInfoundefined | IPivotTableSortInfoThe sort information of the label field.

Returns

void

Method

setSortInfo

Description

Set the sort information of the label field.

Defined in

pivot/table-field.ts:194


setSourceName()

setSourceName(sourceName): void

Parameters

ParameterType
sourceNamestring

Returns

void

Inherited from

PivotTableFieldBase.setSourceName

Defined in

pivot/table-field.ts:68


toJSON()

abstract toJSON(): IPivotTableLabelFieldJSON

Returns

IPivotTableLabelFieldJSON

Overrides

PivotTableFieldBase.toJSON

Defined in

pivot/table-field.ts:235