AdaptableFormat

View as Markdown

How a Format Column displays a value.

Set Formatter to 'NumberFormatter', 'DateFormatter' or 'StringFormatter', and put that formatter's options in Options. On a Format Column, DisplayFormat may instead be a numeric preset name such as 'Percentage' or 'Dollar'.

TypeScript
export type AdaptableFormat = {
    Formatter: 'NumberFormatter';
    Options: NumberFormatterOptions;
} | {
    Formatter: 'DateFormatter';
    Options: DateFormatterOptions;
} | {
    Formatter: 'StringFormatter';
    Options: StringFormatterOptions;
};
References

NumberFormatterOptions | DateFormatterOptions | StringFormatterOptions