HtmlForgeX

API Reference

Class

BooleanValueTransformer

Namespace HtmlForgeX
Assembly HtmlForgeX

Formats Boolean values using text, badges, or icons. Useful when tables contain many boolean columns and you want consistent visuals.

Inheritance

  • Object
  • BooleanValueTransformer

Constructors

Methods

public virtual Boolean TryTransform(Object value, out Object rendered) #
Returns: Boolean

Attempts to convert the provided value to a formatted boolean representation.

Parameters

value System.Object requiredposition: 0
Input value; only Boolean is handled.
rendered System.Object@ requiredposition: 1
Formatted HTML/text output when the method returns true.

Returns

True if the value was a boolean and was formatted; otherwise false.

Properties

public DataTablesBooleanStyle Style { get; set; } #

Controls how boolean values are rendered (text, badges, icons).

public String TrueText { get; set; } #

Text used when true and Style is YesNo.

public String FalseText { get; set; } #

Text used when false and Style is YesNo.