Skip to content

@serenity-is/sleekgrid / applyFormatterResultToCellNode

Function: applyFormatterResultToCellNode()

applyFormatterResultToCellNode(ctx, fmtResult, node, opt?): void

Defined in: src/core/formatting.ts:216

Applies a formatter result to a DOM cell node, handling content, CSS classes, attributes and tooltips tracked via the formatter context.

Parameters

ctx

FormatterContext

Active formatter context carrying addClass/addAttrs/tooltip and sanitizer flags.

fmtResult

FormatterResult

Value returned by the formatter.

node

HTMLElement

Cell DOM node to update.

opt?

When contentOnly is true, only the inner content is updated; decoration cleanup is skipped.

contentOnly?

boolean

Returns

void