Skip to Content
ClassesConditionalFormatDataBarRuleBuilder

Class: ConditionalFormatDataBarRuleBuilder

Extends

  • ConditionalFormatRuleBaseBuilder

Constructors

new ConditionalFormatDataBarRuleBuilder()

new ConditionalFormatDataBarRuleBuilder(initRule?): ConditionalFormatDataBarRuleBuilder

Parameters

ParameterType
initRule?IConditionFormattingRule

Returns

ConditionalFormatDataBarRuleBuilder

Inherited from

ConditionalFormatRuleBaseBuilder.constructor

Methods

build()

build(): IConditionFormattingRule<IConditionalFormattingRuleConfig>

Returns

IConditionFormattingRule<IConditionalFormattingRuleConfig>

Inherited from

ConditionalFormatRuleBaseBuilder.build

copy()

copy(): ConditionalFormatDataBarRuleBuilder

Deep clone a current builder.

Returns

ConditionalFormatDataBarRuleBuilder

Memberof

ConditionalFormatRuleBuilder

Overrides

ConditionalFormatRuleBaseBuilder.copy

createCfId()

createCfId(): string

Create a conditional format ID.

Returns

string

Memberof

ConditionalFormatRuleBuilder

Inherited from

ConditionalFormatRuleBaseBuilder.createCfId

getIconMap()

getIconMap(): Record<string, ...[]>

Get the icon set mapping dictionary

Returns

Record<string, …[]>

Inherited from

ConditionalFormatRuleBaseBuilder.getIconMap

getRanges()

getRanges(): IRange[]

Gets the scope of the current conditional format

Returns

IRange[]

Memberof

ConditionalFormatRuleBuilder

Inherited from

ConditionalFormatRuleBaseBuilder.getRanges

setDataBar()

setDataBar(config): this

Data bar settings

Parameters

ParameterTypeDescription
config{ isGradient: boolean; isShowValue: boolean; max: IValueConfig; min: IValueConfig; nativeColor: string; positiveColor: string; }
config.isGradient?boolean
config.isShowValue?boolean
config.maxIValueConfig
config.minIValueConfig
config.nativeColorstring
config.positiveColorstring

Returns

this

Memberof

ConditionalFormatRuleBuilder


setRanges()

setRanges(ranges): this

Sets the scope for conditional formatting

Parameters

ParameterTypeDescription
rangesIRange[]

Returns

this

Memberof

ConditionalFormatRuleBuilder

Inherited from

ConditionalFormatRuleBaseBuilder.setRanges