@univerjs-prosheets-pivotindexclassesSheetspivottableconfigmodel

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


Class: SheetsPivotTableConfigModel

Extends

Constructors

new SheetsPivotTableConfigModel()

new SheetsPivotTableConfigModel(
   _injector, 
   _commandService, 
   _univerInstanceService): SheetsPivotTableConfigModel

Parameters

ParameterType
_injectorInjector
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService

Returns

SheetsPivotTableConfigModel

Overrides

Disposable.constructor

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:36

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
configVersion$publicObservable<number>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:34
pivotConfigChange$publicObservable<{ pivotTableConfig: Nullable<IPivotTableConfig>; pivotTableId: string; subUnitId: string; unitId: string; }>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:31
pivotInitCompleted$publicObservable<boolean>undefined-packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:22

Methods

deleteUnitId()

deleteUnitId(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:207


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getCollection()

getCollection(unitId, pivotTableId): undefined | IFieldsCollectionJSON

Parameters

ParameterType
unitIdstring
pivotTableIdstring

Returns

undefined | IFieldsCollectionJSON

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:110


getPivotTableConfig()

getPivotTableConfig(
   unitId, 
   subUnitId, 
pivotTableId): Nullable<IPivotTableConfig>

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring

Returns

Nullable<IPivotTableConfig>

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:77


getPivotTableMatrixInfo()

getPivotTableMatrixInfo(
   unitId, 
   subUnitId, 
   pivotTableId): undefined | IPivotTableMatrixInfo
  • get the pivot table matrix info for sheet or calc engine

Parameters

ParameterTypeDescription
unitIdstringthe unit id
subUnitIdstringthe sub unit id
pivotTableIdstringthe pivot table id

Returns

undefined | IPivotTableMatrixInfo

  • the pivot table matrix info

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:203


getPivotTableRangeInfo()

getPivotTableRangeInfo(
   unitId, 
   subUnitId, 
   pivotTableId): undefined | IPivotTableRangeInfo
  • get the pivot table range info for sheet or calc engine

Parameters

ParameterTypeDescription
unitIdstringthe unit id
subUnitIdstringthe sub unit id
pivotTableIdstringthe pivot table id

Returns

undefined | IPivotTableRangeInfo

  • the pivot table range info

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:192


getSubUnitPivotConfigs()

getSubUnitPivotConfigs(unitId, subUnitId): undefined | Map<string, IPivotTableConfig>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

undefined | Map<string, IPivotTableConfig>

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:90


getTargetByPivotId()

getTargetByPivotId(
   unitId, 
   subUnitId, 
pivotTableId): Nullable<IPivotCellPositionInfo>

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring

Returns

Nullable<IPivotCellPositionInfo>

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:85


getTextInfo()

getTextInfo(): Record<string, string>

Returns

Record<string, string>

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:68


setPivotInitCompleted()

setPivotInitCompleted(): void

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:54


updateCollectionConfig()

updateCollectionConfig(unitId, collectionConfig): void

Parameters

ParameterType
unitIdstring
collectionConfigIDataFieldManagerJSON

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:114


updateConfigCache()

updateConfigCache(
   unitId, 
   subUnitId, 
   pivotTableId, 
   pivotTableConfig): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
pivotTableConfigNullable<IPivotTableConfig>

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:94


updatePivotTableMatrixInfo()

updatePivotTableMatrixInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   matrixInfo): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
matrixInfoObjectMatrix<Nullable<IPivotTableCellData>>

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:174


updatePivotTableRangeInfo()

updatePivotTableRangeInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   rangeInfo): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
rangeInfoundefined | IPivotRangesInfo

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:164


updateViewInfo()

updateViewInfo(
   unitId, 
   subUnitId, 
   pivotTableId, 
   valueMatrix, 
   rangesCache): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
pivotTableIdstring
valueMatrixObjectMatrix<Nullable<IPivotTableCellData>>
rangesCacheundefined | IPivotRangesInfo

Returns

void

Defined in

packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:72