@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs
Class: abstract
DataFieldManager
Constructors
new DataFieldManager()
new DataFieldManager(): DataFieldManager
Returns
Defined in
field/data-field-manager.ts:11
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
Parameters
Parameter | Type |
---|---|
token | string |
collection | FieldsCollection |
sourceRangeInfo | any |
…args | any |
Returns
void
Defined in
field/data-field-manager.ts:101
createCollection()
createCollection(id, rangeStr): FieldsCollection
Parameters
Parameter | Type |
---|---|
id | string |
rangeStr | unknown |
Returns
Defined in
field/data-field-manager.ts:46
createDataFieldId()
createDataFieldId(): string
Returns
string
Defined in
field/data-field-manager.ts:18
dispose()
dispose(): void
Returns
void
Defined in
field/data-field-manager.ts:77
fromJSON()
fromJSON(jsonData): void
Parameters
Parameter | Type |
---|---|
jsonData | IDataFieldManagerBaseJSON |
Returns
void
Defined in
field/data-field-manager.ts:106
getAutoDisplayNameFunction()
getAutoDisplayNameFunction(): null | autoDisplayNameFunction
Returns
null
| autoDisplayNameFunction
Defined in
field/data-field-manager.ts:26
getNoUsedDataFieldIds()
getNoUsedDataFieldIds(excludeCollectionToken): string[]
Parameters
Parameter | Type |
---|---|
excludeCollectionToken | string |
Returns
string
[]
Defined in
field/data-field-manager.ts:30
getRangeData()
abstract getRangeData(rangeKey): {
data: IDataFieldValue[][];
header: unknown[];
}
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 |
Defined in
field/data-field-manager.ts:121
toJSON()
toJSON(): IDataFieldManagerBaseJSON
Returns
Defined in
field/data-field-manager.ts:85