StringFormatterOptions
Formatter Options for String Columns
TypeScript
export interface StringFormatterOptions extendsExtends
BaseFormatterOptions
Properties
| Property | Description |
|---|---|
| Case | Sets text to Upper or Lower case |
| Content | Replaces cell value; useful when using Condition (e.g. replace null with 'N/A') |
| Empty | Show nothing in cell (but underlying value remains) |
| Prefix | Prefix to use before the cell text |
| Suffix | Suffix to use after the cell text |
| Trim | Trims 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