@univerjs/sheets-filter v0.5.0-beta.1 • Docs
Class: SheetsFilterService
This service is responsible for managing filter models, especially their lifecycle.
Extends
Constructors
new SheetsFilterService()
new SheetsFilterService(
_resourcesManagerService,
_univerInstanceService,
_commandService): SheetsFilterService
Parameters
Parameter | Type |
---|---|
_resourcesManagerService | IResourceManagerService |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
Returns
Overrides
Defined in
sheets-filter/src/services/sheet-filter.service.ts:68
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
activeFilterModel$ | readonly | Observable <Nullable <FilterModel >> | undefined | An 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$ | readonly | Observable <Nullable <string >> | undefined | - | - | sheets-filter/src/services/sheet-filter.service.ts:60 |
loadedUnitId$ | readonly | Observable <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
Defined in
sheets-filter/src/services/sheet-filter.service.ts:66
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureFilterModel()
ensureFilterModel(unitId, subUnitId): FilterModel
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Defined in
sheets-filter/src/services/sheet-filter.service.ts:84
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getFilterModel()
getFilterModel(unitId, subUnitId): Nullable<FilterModel>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Defined in
sheets-filter/src/services/sheet-filter.service.ts:105
removeFilterModel()
removeFilterModel(unitId, subUnitId): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
boolean
Defined in
sheets-filter/src/services/sheet-filter.service.ts:109
setFilterErrorMsg()
setFilterErrorMsg(content): void
Parameters
Parameter | Type |
---|---|
content | string |
Returns
void
Defined in
sheets-filter/src/services/sheet-filter.service.ts:120