StringFormatterOptions

Formatter Options for String Columns

TypeScript
export interface StringFormatterOptions extends
Extends

BaseFormatterOptions

Properties

PropertyDescription
CaseSets text to Upper or Lower case
ContentReplaces cell value; useful when using Condition (e.g. replace null with 'N/A')
EmptyShow nothing in cell (but underlying value remains)
PrefixPrefix to use before the cell text
SuffixSuffix to use after the cell text
TrimTrims text (both start and end)

Property Details

Case

Sets text to Upper or Lower case

TypeScript
Case?: 'Upper' | 'Lower' | 'Sentence';
Property Value

'Upper' | 'Lower' | 'Sentence'

Content

Replaces cell value; useful when using Condition (e.g. replace null with 'N/A')

TypeScript
Content?: string;
Property Value

string

Empty

Show nothing in cell (but underlying value remains)

TypeScript
Empty?: boolean;
Property Value

boolean

Prefix

Prefix to use before the cell text

TypeScript
Prefix?: string;
Property Value

string

Suffix

Suffix to use after the cell text

TypeScript
Suffix?: string;
Property Value

string

Trim

Trims text (both start and end)

TypeScript
Trim?: boolean;
Property Value

boolean