@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

DataFieldManager

Properties

PropertyTypeDefault valueDefined in
collectionsRecord<string, FieldsCollection>{}field/data-field-manager.ts:9
dataFieldsRecord<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

ParameterType
tokenstring
collectionFieldsCollection
sourceRangeInfoany
argsany

Returns

void


createCollection()

createCollection(id, rangeStr): FieldsCollection

Defined in: field/data-field-manager.ts:46

Parameters

ParameterType
idstring
rangeStrunknown

Returns

FieldsCollection


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

ParameterType
jsonDataIDataFieldManagerBaseJSON

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

ParameterType
excludeCollectionTokenstring

Returns

string[]


getRangeData()

abstract getRangeData(rangeKey): {
  data: IDataFieldValue[][];
  header: unknown[];
}

Defined in: field/data-field-manager.ts:121

Parameters

ParameterType
rangeKeyunknown

Returns

{
  data: IDataFieldValue[][];
  header: unknown[];
}
NameTypeDefined in
dataIDataFieldValue[][]field/data-field-manager.ts:121
headerunknown[]field/data-field-manager.ts:121

toJSON()

toJSON(): IDataFieldManagerBaseJSON

Defined in: field/data-field-manager.ts:85

Returns

IDataFieldManagerBaseJSON