Skip to main content

getFormattedValue

getFormattedValue

getFormattedValue(value: string | number , formatConfigProp: FormatConfig , columnFormatConfig: ColumnFormat ) : string

Formats a value based on the provided format configuration and column settings.

Function Parameters

value:::

  • value: string | number

The value to format (can be a string or number).

formatConfigProp:::

The format configuration for the value.

columnFormatConfig:::

The column-specific formatting settings.

Returns

string

Defined in : link:https://github.com/thoughtspot/ts-chart-sdk/blob/f477c20/src/utils/number-formatting/number-formatting.ts#L86

--