@univerjs-pro/engine-pivot v0.5.4


Class: PivotTableLabelField

Defined in: pivot/table-field.ts:182

Represents a label field in a pivot table.

Extends

Constructors

new PivotTableLabelField()

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

Defined in: pivot/table-field.ts:185

Parameters

ParameterTypeDefault value
dataFieldIdstringundefined
idstringundefined
displayNamestring''
sourceNamestringundefined

Returns

PivotTableLabelField

Overrides

PivotTableFieldBase.constructor

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
sortInfopublic| undefined | IPivotTableSortInfo--pivot/table-field.ts:183
sourceNamereadonlystring-PivotTableFieldBase.sourceNamepivot/table-field.ts:40

Methods

fromJSON()

abstract fromJSON(data): void

Defined in: pivot/table-field.ts:247

Parameters

ParameterTypeDescription
dataIPivotTableLabelFieldJSONthe data config a field.

Returns

void

Overrides

PivotTableFieldBase.fromJSON


getDataFieldId()

getDataFieldId(): string

Defined in: pivot/table-field.ts:78

Returns

string

Inherited from

PivotTableFieldBase.getDataFieldId


getDisplayName()

getDisplayName(): string

Defined in: pivot/table-field.ts:94

Returns

string

Inherited from

PivotTableFieldBase.getDisplayName


getFilterInfo()

getFilterInfo(): IPivotTableFilterInfo

Defined in: pivot/table-field.ts:221

Returns

IPivotTableFilterInfo

The filter information of the label field.

Method

getFilterInfo

Description

Get the filter information of the label field.


getFormat()

getFormat(): undefined | string

Defined in: pivot/table-field.ts:82

Returns

undefined | string

Inherited from

PivotTableFieldBase.getFormat


getId()

getId(): string

Defined in: pivot/table-field.ts:56

Returns

string

Inherited from

PivotTableFieldBase.getId


getQueryData()

abstract getQueryData(): IPivotTableLabelFieldQueryData

Defined in: pivot/table-field.ts:225

Returns

IPivotTableLabelFieldQueryData

  • the query data of the field.

Overrides

PivotTableFieldBase.getQueryData


getSortInfo()

getSortInfo(): 
  | undefined
  | IPivotTableSortInfo

Defined in: pivot/table-field.ts:203

Returns

| undefined | IPivotTableSortInfo

The sort information of the label field.

Method

getSortInfo

Description

Get the sort information of the label field.


getSourceName()

getSourceName(): string

Defined in: pivot/table-field.ts:64

  • 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


setDataFieldId()

setDataFieldId(dataFieldId): void

Defined in: pivot/table-field.ts:73

Parameters

ParameterType
dataFieldIdstring

Returns

void

Inherited from

PivotTableFieldBase.setDataFieldId


setDisplayName()

setDisplayName(displayName): void

Defined in: pivot/table-field.ts:90

Parameters

ParameterType
displayNamestring

Returns

void

Inherited from

PivotTableFieldBase.setDisplayName


setFilterInfo()

setFilterInfo(filterInfo): void

Defined in: pivot/table-field.ts:212

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.


setFormat()

setFormat(format): void

Defined in: pivot/table-field.ts:86

Parameters

ParameterType
formatundefined | string

Returns

void

Inherited from

PivotTableFieldBase.setFormat


setSortInfo()

setSortInfo(sortInfo): void

Defined in: pivot/table-field.ts:194

Parameters

ParameterTypeDescription
sortInfo| undefined | IPivotTableSortInfoThe sort information of the label field.

Returns

void

Method

setSortInfo

Description

Set the sort information of the label field.


setSourceName()

setSourceName(sourceName): void

Defined in: pivot/table-field.ts:68

Parameters

ParameterType
sourceNamestring

Returns

void

Inherited from

PivotTableFieldBase.setSourceName


toJSON()

abstract toJSON(): IPivotTableLabelFieldJSON

Defined in: pivot/table-field.ts:235

Returns

IPivotTableLabelFieldJSON

Overrides

PivotTableFieldBase.toJSON