@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs
Class: PivotTableValueField
Represents a base class for the field in a pivot table.
Description
The base class for the field in a pivot table.
Extends
Constructors
new PivotTableValueField()
new PivotTableValueField(
dataFieldId,
id,
displayName,
sourceName): PivotTableValueField
Parameters
Parameter | Type | Default value |
---|---|---|
dataFieldId | string | undefined |
id | string | undefined |
displayName | string | '' |
sourceName | string | undefined |
Returns
Overrides
PivotTableFieldBase
.constructor
Defined in
pivot/table-field.ts:115
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
dataFieldId | readonly | string | The base data field id of the field. | PivotTableFieldBase .dataFieldId | pivot/table-field.ts:38 |
displayName | public | string | The display name of the field. the default value is the data field name. | PivotTableFieldBase .displayName | pivot/table-field.ts:44 |
format | public | undefined | string | - | PivotTableFieldBase .format | pivot/table-field.ts:45 |
id | readonly | string | The unique identifier of the field. | PivotTableFieldBase .id | pivot/table-field.ts:39 |
lossLessProperty? | public | any | thr public object to save the property not defined but should be saved. | PivotTableFieldBase .lossLessProperty | pivot/table-field.ts:47 |
showDataAs | public | IPivotTableShowDataAsInfo | - | - | pivot/table-field.ts:114 |
sourceName | readonly | string | - | PivotTableFieldBase .sourceName | pivot/table-field.ts:40 |
subtotal | public | PivotSubtotalTypeEnum | - | - | pivot/table-field.ts:113 |
Methods
fromJSON()
fromJSON(data): void
Parameters
Parameter | Type |
---|---|
data | IPivotTableValueFieldJSON |
Returns
void
Overrides
Defined in
pivot/table-field.ts:165
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
getFormat()
getFormat(): undefined | string
Returns
undefined
| string
Inherited from
Defined in
pivot/table-field.ts:82
getId()
getId(): string
Returns
string
Inherited from
Defined in
pivot/table-field.ts:56
getQueryData()
abstract getQueryData(): IPivotTableValueFieldQueryData
Returns
IPivotTableValueFieldQueryData
- the query data of the field.
Overrides
PivotTableFieldBase
.getQueryData
Defined in
pivot/table-field.ts:135
getShowDataAs()
getShowDataAs(): IPivotTableShowDataAsInfo
Returns
Defined in
pivot/table-field.ts:131
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
getSubtotal()
getSubtotal(): PivotSubtotalTypeEnum
Returns
Defined in
pivot/table-field.ts:123
setDataFieldId()
setDataFieldId(dataFieldId): void
Parameters
Parameter | Type |
---|---|
dataFieldId | string |
Returns
void
Inherited from
PivotTableFieldBase
.setDataFieldId
Defined in
pivot/table-field.ts:73
setDisplayName()
setDisplayName(displayName): void
Parameters
Parameter | Type |
---|---|
displayName | string |
Returns
void
Inherited from
PivotTableFieldBase
.setDisplayName
Defined in
pivot/table-field.ts:90
setFormat()
setFormat(format): void
Parameters
Parameter | Type |
---|---|
format | undefined | string |
Returns
void
Inherited from
Defined in
pivot/table-field.ts:86
setShowDataAs()
setShowDataAs(showDataAs): void
Parameters
Parameter | Type |
---|---|
showDataAs | IPivotTableShowDataAsInfo |
Returns
void
Defined in
pivot/table-field.ts:127
setSourceName()
setSourceName(sourceName): void
Parameters
Parameter | Type |
---|---|
sourceName | string |
Returns
void
Inherited from
PivotTableFieldBase
.setSourceName
Defined in
pivot/table-field.ts:68
setSubtotal()
setSubtotal(subtotal): void
Parameters
Parameter | Type |
---|---|
subtotal | PivotSubtotalTypeEnum |
Returns
void
Defined in
pivot/table-field.ts:119
toJSON()
toJSON(): IPivotTableValueFieldJSON
Returns
- the JSON data of the value field.
Overrides
Defined in
pivot/table-field.ts:149