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:

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)

Caution

There are no presets available for string columns

Column Formatting: String Display Formats
Fork
  • In this example 4 System String Display Formats are provided:
    • Name is uppercase
    • Language is given a Prefix of 'Lang-'
    • Description is set to Content of "[Too long to show...]" - using Condition (leveraging the LEN AdapTableQL Expression Function) that cell value is over 100 characters
    • License shows 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.