Skip to content

@serenity-is/sleekgrid / CheckmarkFormatter

Function: CheckmarkFormatter()

CheckmarkFormatter(ctx): FormatterResult

Defined in: src/formatters/formatters.ts:75

Renders a boolean value as a checkmark icon; nothing when falsy.

Parameters

ctx

FormatterContext

Formatter context whose value is coerced to boolean.

Returns

FormatterResult

An <i> with slick-checkmark when truthy, otherwise empty string.