@univerjs/sheets-filter v0.5.4


Class: SheetsFilterService

Defined in: sheets-filter/src/services/sheet-filter.service.ts:41

This service is responsible for managing filter models, especially their lifecycle.

Extends

Constructors

new SheetsFilterService()

new SheetsFilterService(
   _resourcesManagerService, 
   _univerInstanceService, 
   _commandService): SheetsFilterService

Defined in: sheets-filter/src/services/sheet-filter.service.ts:56

Parameters

ParameterType
_resourcesManagerServiceIResourceManagerService
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService

Returns

SheetsFilterService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
_disposedprotectedbooleanfalse-Disposable._disposedcore/src/shared/lifecycle.ts:96
activeFilterModel$readonlyObservable<Nullable<FilterModel>>undefinedAn observable value emitting the current Workbook’s active Worksheet’s filter model (if there is one).-sheets-filter/src/services/sheet-filter.service.ts:52
errorMsg$readonlyObservable<Nullable<string>>undefined--sheets-filter/src/services/sheet-filter.service.ts:48
loadedUnitId$readonlyObservable<Nullable<string>>undefined--sheets-filter/src/services/sheet-filter.service.ts:45

Accessors

activeFilterModel

Get Signature

get activeFilterModel(): Nullable<FilterModel>

Defined in: sheets-filter/src/services/sheet-filter.service.ts:54

The current Workbook’s active Worksheet’s filter model (if there is one).

Returns

Nullable<FilterModel>

Methods

dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureFilterModel()

ensureFilterModel(unitId, subUnitId): FilterModel

Defined in: sheets-filter/src/services/sheet-filter.service.ts:72

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

FilterModel


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getFilterModel()

getFilterModel(unitId, subUnitId): Nullable<FilterModel>

Defined in: sheets-filter/src/services/sheet-filter.service.ts:93

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

Nullable<FilterModel>


removeFilterModel()

removeFilterModel(unitId, subUnitId): boolean

Defined in: sheets-filter/src/services/sheet-filter.service.ts:97

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

boolean


setFilterErrorMsg()

setFilterErrorMsg(content): void

Defined in: sheets-filter/src/services/sheet-filter.service.ts:108

Parameters

ParameterType
contentstring

Returns

void