@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs
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
Parameter | Type | Default value |
---|---|---|
dataFieldId | string | undefined |
id | string | undefined |
displayName | string | '' |
sourceName | string | undefined |
Returns
Defined in
pivot/table-field.ts:49
Properties
Property | Modifier | Type | Description | Defined in |
---|---|---|---|---|
dataFieldId | readonly | string | The base data field id of the field. | pivot/table-field.ts:38 |
displayName | public | string | The display name of the field. the default value is the data field name. | pivot/table-field.ts:44 |
format | public | undefined | string | - | pivot/table-field.ts:45 |
id | readonly | string | The unique identifier of the field. | pivot/table-field.ts:39 |
lossLessProperty? | public | any | thr public object to save the property not defined but should be saved. | pivot/table-field.ts:47 |
sourceName | readonly | string | - | pivot/table-field.ts:40 |
Methods
fromJSON()
abstract fromJSON(data): void
Parameters
Parameter | Type | Description |
---|---|---|
data | object | the 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
Parameter | Type |
---|---|
dataFieldId | string |
Returns
void
Defined in
pivot/table-field.ts:73
setDisplayName()
setDisplayName(displayName): void
Parameters
Parameter | Type |
---|---|
displayName | string |
Returns
void
Defined in
pivot/table-field.ts:90
setFormat()
setFormat(format): void
Parameters
Parameter | Type |
---|---|
format | undefined | string |
Returns
void
Defined in
pivot/table-field.ts:86
setSourceName()
setSourceName(sourceName): void
Parameters
Parameter | Type |
---|---|
sourceName | string |
Returns
void
Defined in
pivot/table-field.ts:68
toJSON()
abstract toJSON(): object
Returns
object
Defined in
pivot/table-field.ts:100