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


Class: abstract PivotTableFieldBase

Represents a base class for the field in a pivot table.

Description

The base class for the field in a pivot table.

Extended by

Constructors

new PivotTableFieldBase()

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

Parameters

ParameterTypeDefault value
dataFieldIdstringundefined
idstringundefined
displayNamestring''
sourceNamestringundefined

Returns

PivotTableFieldBase

Defined in

pivot/table-field.ts:49

Properties

PropertyModifierTypeDescriptionDefined in
dataFieldIdreadonlystringThe base data field id of the field.pivot/table-field.ts:38
displayNamepublicstringThe display name of the field. the default value is the data field name.pivot/table-field.ts:44
formatpublicundefined | string-pivot/table-field.ts:45
idreadonlystringThe unique identifier of the field.pivot/table-field.ts:39
lossLessProperty?publicanythr public object to save the property not defined but should be saved.pivot/table-field.ts:47
sourceNamereadonlystring-pivot/table-field.ts:40

Methods

fromJSON()

abstract fromJSON(data): void

Parameters

ParameterTypeDescription
dataobjectthe data config a field.

Returns

void

Defined in

pivot/table-field.ts:105


getDataFieldId()

getDataFieldId(): string

Returns

string

Defined in

pivot/table-field.ts:78


getDisplayName()

getDisplayName(): string

Returns

string

Defined in

pivot/table-field.ts:94


getFormat()

getFormat(): undefined | string

Returns

undefined | string

Defined in

pivot/table-field.ts:82


getId()

getId(): string

Returns

string

Defined in

pivot/table-field.ts:56


getQueryData()

abstract getQueryData(): object

Returns

object

  • the query data of the field.

Defined in

pivot/table-field.ts:110


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.

Defined in

pivot/table-field.ts:64


setDataFieldId()

setDataFieldId(dataFieldId): void

Parameters

ParameterType
dataFieldIdstring

Returns

void

Defined in

pivot/table-field.ts:73


setDisplayName()

setDisplayName(displayName): void

Parameters

ParameterType
displayNamestring

Returns

void

Defined in

pivot/table-field.ts:90


setFormat()

setFormat(format): void

Parameters

ParameterType
formatundefined | string

Returns

void

Defined in

pivot/table-field.ts:86


setSourceName()

setSourceName(sourceName): void

Parameters

ParameterType
sourceNamestring

Returns

void

Defined in

pivot/table-field.ts:68


toJSON()

abstract toJSON(): object

Returns

object

Defined in

pivot/table-field.ts:100