@univerjs-pro/engine-pivot v0.5.0-beta.1Docs


Class: abstract DataFieldManager

Constructors

new DataFieldManager()

new DataFieldManager(): DataFieldManager

Returns

DataFieldManager

Defined in

field/data-field-manager.ts:11

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

Parameters

ParameterType
tokenstring
collectionFieldsCollection
sourceRangeInfoany
argsany

Returns

void

Defined in

field/data-field-manager.ts:101


createCollection()

createCollection(id, rangeStr): FieldsCollection

Parameters

ParameterType
idstring
rangeStrunknown

Returns

FieldsCollection

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

ParameterType
jsonDataIDataFieldManagerBaseJSON

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

ParameterType
excludeCollectionTokenstring

Returns

string[]

Defined in

field/data-field-manager.ts:30


getRangeData()

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

Parameters

ParameterType
rangeKeyunknown

Returns

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

Defined in

field/data-field-manager.ts:121


toJSON()

toJSON(): IDataFieldManagerBaseJSON

Returns

IDataFieldManagerBaseJSON

Defined in

field/data-field-manager.ts:85