@univerjs-pro/engine-pivot v0.5.4
Class: abstract
DataFieldManager
Defined in: field/data-field-manager.ts:7
Constructors
new DataFieldManager()
new DataFieldManager(): DataFieldManager
Defined in: field/data-field-manager.ts:11
Returns
Properties
Property | Type | Default value | Defined in |
---|---|---|---|
collections | Record <string , FieldsCollection > | {} | field/data-field-manager.ts:9 |
dataFields | Record <string , DataField > | {} | field/data-field-manager.ts:8 |
Methods
addCollection()
addCollection(
token,
collection,
sourceRangeInfo, ...
args): void
Defined in: field/data-field-manager.ts:101
Parameters
Parameter | Type |
---|---|
token | string |
collection | FieldsCollection |
sourceRangeInfo | any |
…args | any |
Returns
void
createCollection()
createCollection(id, rangeStr): FieldsCollection
Defined in: field/data-field-manager.ts:46
Parameters
Parameter | Type |
---|---|
id | string |
rangeStr | unknown |
Returns
createDataFieldId()
createDataFieldId(): string
Defined in: field/data-field-manager.ts:18
Returns
string
dispose()
dispose(): void
Defined in: field/data-field-manager.ts:77
Returns
void
fromJSON()
fromJSON(jsonData): void
Defined in: field/data-field-manager.ts:106
Parameters
Parameter | Type |
---|---|
jsonData | IDataFieldManagerBaseJSON |
Returns
void
getAutoDisplayNameFunction()
getAutoDisplayNameFunction(): null | autoDisplayNameFunction
Defined in: field/data-field-manager.ts:26
Returns
null
| autoDisplayNameFunction
getNoUsedDataFieldIds()
getNoUsedDataFieldIds(excludeCollectionToken): string[]
Defined in: field/data-field-manager.ts:30
Parameters
Parameter | Type |
---|---|
excludeCollectionToken | string |
Returns
string
[]
getRangeData()
abstract getRangeData(rangeKey): {
data: IDataFieldValue[][];
header: unknown[];
}
Defined in: field/data-field-manager.ts:121
Parameters
Parameter | Type |
---|---|
rangeKey | unknown |
Returns
{
data: IDataFieldValue[][];
header: unknown[];
}
Name | Type | Defined in |
---|---|---|
data | IDataFieldValue [][] | field/data-field-manager.ts:121 |
header | unknown [] | field/data-field-manager.ts:121 |
toJSON()
toJSON(): IDataFieldManagerBaseJSON
Defined in: field/data-field-manager.ts:85