@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
Parameter | Type |
---|---|
_resourcesManagerService | IResourceManagerService |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
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:52 |
errorMsg$ | readonly | Observable <Nullable <string >> | undefined | - | - | sheets-filter/src/services/sheet-filter.service.ts:48 |
loadedUnitId$ | readonly | Observable <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
Methods
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureFilterModel()
ensureFilterModel(unitId, subUnitId): FilterModel
Defined in: sheets-filter/src/services/sheet-filter.service.ts:72
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getFilterModel()
getFilterModel(unitId, subUnitId): Nullable<FilterModel>
Defined in: sheets-filter/src/services/sheet-filter.service.ts:93
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
removeFilterModel()
removeFilterModel(unitId, subUnitId): boolean
Defined in: sheets-filter/src/services/sheet-filter.service.ts:97
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
boolean
setFilterErrorMsg()
setFilterErrorMsg(content): void
Defined in: sheets-filter/src/services/sheet-filter.service.ts:108
Parameters
Parameter | Type |
---|---|
content | string |
Returns
void