HtmlForgeX

API Reference

Class

DataTablesBooleanFormatterBuilder

Fluent helper to configure boolean value rendering for DataTablesTable. Produces and attaches a BooleanValueTransformer.

Inheritance

  • Object
  • DataTablesBooleanFormatterBuilder

Methods

public DataTablesBooleanFormatterBuilder Badges() #
Returns: DataTablesBooleanFormatterBuilder

Render booleans using Bootstrap badges.

public DataTablesBooleanFormatterBuilder Icons() #
Returns: DataTablesBooleanFormatterBuilder

Render booleans using simple icons (check/cross).

public DataTablesBooleanFormatterBuilder Style(DataTablesBooleanStyle style) #
Returns: DataTablesBooleanFormatterBuilder

Sets the boolean display style.

Parameters

style HtmlForgeX.DataTablesBooleanStyle requiredposition: 0
public DataTablesBooleanFormatterBuilder YesNo(String yes = "Yes", String no = "No") #
Returns: DataTablesBooleanFormatterBuilder

Use friendly text and customize labels.

Parameters

yes System.String = "Yes" optionalposition: 0
Text for true values.
no System.String = "No" optionalposition: 1
Text for false values.