Skip to content

BooleanFormatterAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Sets formatting type to "Boolean"

[AttributeUsage(AttributeTargets.All)]
public class BooleanFormatterAttribute : CustomFormatterAttribute

Public Members

name description
BooleanFormatterAttribute() Initializes a new instance of the BooleanFormatterAttribute class.
FalseIcon { get; set; } Gets or sets the icon corresponding to falsy value.
FalseText { get; set; } Gets or sets the text corresponding to falsy value.
ShowHint { get; set; } Gets or sets a value indicating whether to show hint (text) on hover when text is not displayed next to checkbox icon. When displayed in header filter, defaults to false, otherwise defaults to true when showText is false.
ShowText { get; set; } Gets or sets a value indicating whether to show text next to the icon. Defaults to true.
TrueIcon { get; set; } Gets or sets the icon corresponding to truthy value.
TrueText { get; set; } Gets or sets the text corresponding to truthy value.
const Key Formatter type key

See Also