@univerjs/sheets-filter v0.5.0-beta.1Docs


Class: SheetsFilterService

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

Extends

Constructors

new SheetsFilterService()

new SheetsFilterService(
   _resourcesManagerService, 
   _univerInstanceService, 
   _commandService): SheetsFilterService

Parameters

ParameterType
_resourcesManagerServiceIResourceManagerService
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService

Returns

SheetsFilterService

Overrides

Disposable.constructor

Defined in

sheets-filter/src/services/sheet-filter.service.ts:68

Properties

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
_disposedprotectedbooleanfalse-Disposable._disposedcore/src/shared/lifecycle.ts:93
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:64
errorMsg$readonlyObservable<Nullable<string>>undefined--sheets-filter/src/services/sheet-filter.service.ts:60
loadedUnitId$readonlyObservable<Nullable<string>>undefined--sheets-filter/src/services/sheet-filter.service.ts:57

Accessors

activeFilterModel

Get Signature

get activeFilterModel(): Nullable<FilterModel>

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

Returns

Nullable<FilterModel>

Defined in

sheets-filter/src/services/sheet-filter.service.ts:66

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureFilterModel()

ensureFilterModel(unitId, subUnitId): FilterModel

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

FilterModel

Defined in

sheets-filter/src/services/sheet-filter.service.ts:84


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getFilterModel()

getFilterModel(unitId, subUnitId): Nullable<FilterModel>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

Nullable<FilterModel>

Defined in

sheets-filter/src/services/sheet-filter.service.ts:105


removeFilterModel()

removeFilterModel(unitId, subUnitId): boolean

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

boolean

Defined in

sheets-filter/src/services/sheet-filter.service.ts:109


setFilterErrorMsg()

setFilterErrorMsg(content): void

Parameters

ParameterType
contentstring

Returns

void

Defined in

sheets-filter/src/services/sheet-filter.service.ts:120