@univerjs/sheets-conditional-formatting v0.5.0-beta.1Docs


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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93
interceptorManagerpublicInterceptorManager<{ beforeUpdateRuleResult: IInterceptor<{ cfId: string; subUnitId: string; unitId: string; }, undefined>; }>undefined-sheets-conditional-formatting/src/services/conditional-formatting.service.ts:52
ruleComputeStatus$publicObservable<{ cfId: string; result: ObjectMatrix<any>; status: ComputeStatus; subUnitId: string; unitId: string; }>undefined-sheets-conditional-formatting/src/services/conditional-formatting.service.ts:50

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


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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100