API Reference
@univerjs
@univerjs/sheets-conditional-formatting
classes
Conditionalformattingservice

@univerjs/sheets-conditional-formatting v0.4.2Docs


Class: ConditionalFormattingService

Extends

Constructors

new ConditionalFormattingService()

new ConditionalFormattingService(
   _conditionalFormattingRuleModel, 
   _injector, 
   _conditionalFormattingViewModel, 
   _univerInstanceService, 
   _resourceManagerService, 
   _sheetInterceptorService, 
   _commandService): ConditionalFormattingService

Parameters

ParameterType
_conditionalFormattingRuleModelConditionalFormattingRuleModel
_injectorInjector
_conditionalFormattingViewModelConditionalFormattingViewModel
_univerInstanceServiceIUniverInstanceService
_resourceManagerServiceIResourceManagerService
_sheetInterceptorServiceSheetInterceptorService
_commandServiceICommandService

Returns

ConditionalFormattingService

Overrides

Disposable.constructor

Defined in

sheets-conditional-formatting/src/services/conditional-formatting.service.ts:56 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)
interceptorManagerpublicInterceptorManager<{ 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$publicObservable<{ 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

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

null | { style: IStyleBase; } & IDataBarCellData & IIconSetCellData & { isShowValue: boolean; }

Defined in

sheets-conditional-formatting/src/services/conditional-formatting.service.ts:100 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.