StringFormatterOptions

Formatter Options for String Columns

TypeScript
export interface StringFormatterOptions extends
Extends

BaseFormatterOptions

Properties

PropertyTypeDescription
Case'Upper' | 'Lower' | 'Sentence'Sets text to Upper, Lower or Sentence case
ContentstringReplaces cell value; useful when using Condition (e.g. replace null with 'N/A')
EmptybooleanShow nothing in cell (but underlying value remains)
PrefixstringPrefix to use before the cell text
SuffixstringSuffix to use after the cell text
TrimbooleanTrims text (both start and end)

Property Details

Case

Sets text to Upper, Lower or Sentence 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