@univerjs/sheets-conditional-formatting v0.4.2 • Docs
Class: ConditionalFormattingService
Extends
Constructors
new ConditionalFormattingService()
new ConditionalFormattingService(
_conditionalFormattingRuleModel,
_injector,
_conditionalFormattingViewModel,
_univerInstanceService,
_resourceManagerService,
_sheetInterceptorService,
_commandService): ConditionalFormattingService
Parameters
Parameter | Type |
---|---|
_conditionalFormattingRuleModel | ConditionalFormattingRuleModel |
_injector | Injector |
_conditionalFormattingViewModel | ConditionalFormattingViewModel |
_univerInstanceService | IUniverInstanceService |
_resourceManagerService | IResourceManagerService |
_sheetInterceptorService | SheetInterceptorService |
_commandService | ICommandService |
Returns
Overrides
Defined in
sheets-conditional-formatting/src/services/conditional-formatting.service.ts:56 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
interceptorManager | public | InterceptorManager <{ beforeUpdateRuleResult : IInterceptor <{ cfId : string ; subUnitId : string ; unitId : string ; }, undefined >; }> | undefined | - | sheets-conditional-formatting/src/services/conditional-formatting.service.ts:52 (opens in a new tab) |
ruleComputeStatus$ | public | Observable <{ cfId : string ; result : ObjectMatrix <any >; status : ComputeStatus ; subUnitId : string ; unitId : string ; }> | undefined | - | sheets-conditional-formatting/src/services/conditional-formatting.service.ts:50 (opens in a new tab) |
Methods
composeStyle()
composeStyle(
unitId,
subUnitId,
row,
col): null | {
style: IStyleBase;
} & IDataBarCellData & IIconSetCellData & {
isShowValue: boolean;
}
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
null
| {
style
: IStyleBase
;
} & IDataBarCellData
& IIconSetCellData
& {
isShowValue
: boolean
;
}
Defined in
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void