@univerjs-pro/sheets-pivot v0.5.4
Class: SheetsPivotTableConfigModel
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:10
Extends
Constructors
new SheetsPivotTableConfigModel()
new SheetsPivotTableConfigModel(
_injector,
_commandService,
_univerInstanceService): SheetsPivotTableConfigModel
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:36
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
configVersion$ | public | Observable <number > | undefined | - | packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:34 |
pivotConfigChange$ | public | Observable <{ pivotTableConfig : Nullable <IPivotTableConfig >; pivotTableId : string ; subUnitId : string ; unitId : string ; }> | undefined | - | packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:31 |
pivotInitCompleted$ | public | Observable <boolean > | undefined | - | packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:22 |
Methods
deleteUnitId()
deleteUnitId(unitId): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:221
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCollection()
getCollection(unitId, pivotTableId):
| undefined
| IFieldsCollectionJSON
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:124
Parameters
Parameter | Type |
---|---|
unitId | string |
pivotTableId | string |
Returns
| undefined
| IFieldsCollectionJSON
getPivotTableConfig()
getPivotTableConfig(
unitId,
subUnitId,
pivotTableId): Nullable<IPivotTableConfig>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:77
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
Returns
getPivotTableMatrixInfo()
getPivotTableMatrixInfo(
unitId,
subUnitId,
pivotTableId): undefined | IPivotTableMatrixInfo
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:217
- get the pivot table matrix info for sheet or calc engine
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | the unit id |
subUnitId | string | the sub unit id |
pivotTableId | string | the pivot table id |
Returns
undefined
| IPivotTableMatrixInfo
- the pivot table matrix info
getPivotTableRangeInfo()
getPivotTableRangeInfo(
unitId,
subUnitId,
pivotTableId): undefined | IPivotTableRangeInfo
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:206
- get the pivot table range info for sheet or calc engine
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | the unit id |
subUnitId | string | the sub unit id |
pivotTableId | string | the pivot table id |
Returns
undefined
| IPivotTableRangeInfo
- the pivot table range info
getSubUnitPivotConfigs()
getSubUnitPivotConfigs(unitId, subUnitId):
| undefined
| Map<string, IPivotTableConfig>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:104
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
| undefined
| Map
<string
, IPivotTableConfig
>
getTargetByPivotId()
getTargetByPivotId(
unitId,
subUnitId,
pivotTableId): Nullable<IPivotCellPositionInfo>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:99
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
Returns
Nullable
<IPivotCellPositionInfo
>
getTargetByPivotTableId()
getTargetByPivotTableId(unitId, pivotTableId):
| undefined
| IPivotCellPositionInfo
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:85
Parameters
Parameter | Type |
---|---|
unitId | string |
pivotTableId | string |
Returns
| undefined
| IPivotCellPositionInfo
getTextInfo()
getTextInfo(): Record<string, string>
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:68
Returns
Record
<string
, string
>
setPivotInitCompleted()
setPivotInitCompleted(): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:54
Returns
void
updateCollectionConfig()
updateCollectionConfig(unitId, collectionConfig): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:128
Parameters
Parameter | Type |
---|---|
unitId | string |
collectionConfig | IDataFieldManagerJSON |
Returns
void
updateConfigCache()
updateConfigCache(
unitId,
subUnitId,
pivotTableId,
pivotTableConfig): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:108
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
pivotTableConfig | Nullable <IPivotTableConfig > |
Returns
void
updatePivotTableMatrixInfo()
updatePivotTableMatrixInfo(
unitId,
subUnitId,
pivotTableId,
matrixInfo): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:188
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
matrixInfo | ObjectMatrix <Nullable <IPivotTableCellData >> |
Returns
void
updatePivotTableRangeInfo()
updatePivotTableRangeInfo(
unitId,
subUnitId,
pivotTableId,
rangeInfo): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:178
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
rangeInfo | undefined | IPivotRangesInfo |
Returns
void
updateViewInfo()
updateViewInfo(
unitId,
subUnitId,
pivotTableId,
valueMatrix,
rangesCache): void
Defined in: packages/sheets-pivot/src/models/sheets-pivot-config-model.ts:72
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
pivotTableId | string |
valueMatrix | ObjectMatrix <Nullable <IPivotTableCellData >> |
rangesCache | undefined | IPivotRangesInfo |
Returns
void