@univerjs/sheets-conditional-formatting v0.5.4


Class: ConditionalFormattingService

Defined in: sheets-conditional-formatting/src/services/conditional-formatting.service.ts:29

Extends

Constructors

new ConditionalFormattingService()

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

Defined in: sheets-conditional-formatting/src/services/conditional-formatting.service.ts:34

Parameters

ParameterType
_conditionalFormattingRuleModelConditionalFormattingRuleModel
_injectorInjector
_univerInstanceServiceIUniverInstanceService
_resourceManagerServiceIResourceManagerService
_sheetInterceptorServiceSheetInterceptorService
_commandServiceICommandService

Returns

ConditionalFormattingService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96

Accessors

_conditionalFormattingViewModelV2

Get Signature

get _conditionalFormattingViewModelV2(): ConditionalFormattingViewModel

Defined in: sheets-conditional-formatting/src/services/conditional-formatting.service.ts:30

Returns

ConditionalFormattingViewModel

Methods

composeStyle()

composeStyle(
   unitId, 
   subUnitId, 
   row, 
   col): 
  | null
  | {
  style: IStyleBase;
 } & IDataBarCellData & IIconSetCellData & {
  isShowValue: boolean;
}

Defined in: sheets-conditional-formatting/src/services/conditional-formatting.service.ts:48

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

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


dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed