String Display Format
Summary
- AdapTable provides a number of Display Formats to be used with String Columns
AdapTable ships with a number of System String Display Formats.
These are designed to provide Display Formats for string columns.
They are contained in the String Formatter object defined as follows:
| Property | Type | Description |
|---|---|---|
| Case | 'Upper' | 'Lower' | 'Sentence' | Sets text to Upper, Lower or Sentence case |
| Content | string | Replaces cell value; useful when using Condition (e.g. replace null with 'N/A') |
| Empty | boolean | Show nothing in cell (but underlying value remains) |
| Prefix | string | Prefix to use before the cell text |
| Suffix | string | Suffix to use after the cell text |
| Trim | boolean | Trims text (both start and end) |
Caution
There are no presets available for string columns
Column Formatting: String Display Formats
- In this example 4 System String Display Formats are provided:
Nameis uppercaseLanguageis given a Prefix of 'Lang-'Descriptionis set to Content of "[Too long to show...]" - using Condition (leveraging theLENAdapTableQL Expression Function) that cell value is over 100 charactersLicenseshows as Empty - using Condition where Cell Value was 'Other'
Expand to see the String Display Formats
FAQ
Are there string Display Format presets?
No. String columns use StringFormatter options only (Case, Trim, Prefix, Suffix, Content, Empty).
Can we replace long text with a fixed message?
Yes. Set Content to the replacement text and add a Condition (as in the demo for topics).
Can we hide the cell text but keep the value?
Yes. Set Empty: true (often with a Condition). The underlying value is unchanged.