AccountManagerColumnBase<TFormatterName>
Column properties for the Account Manager pages.
Type parameters
| Name | Type |
|---|---|
TFormatterName | extends StandardFormatterName | FormatterName |
Properties
alignment
OptionalHorizontal alignment of the cell value. The default value is left.
| Alignment | Description |
|---|---|
| left | It aligns the cell value to the left. |
| right | It aligns the cell value to the right. |
Type
dataFields
The dataFields array contains fields from an order/position data object.
dataFields is used to generate the values displayed in a column.
The displayed value in the column updates only when the corresponding values in the data object change.
If no formatter is specified, the displayed values will be space-separated in the column.
When a formatter is defined, it processes only the specified values.
If an empty array is assigned to dataFields, the formatter will receive the entire data object.
Example
- For a column with
dataFieldsset as['avgPrice', 'qty'], the displayed value updates only when theavgPriceorqtyvalues in the data object change. - For a column with an empty
dataFieldsarray, the displayed value updates if any values in the data object change.
Type
TFormatterName extends StandardFormatterName ? StandardFormattersDependenciesMapping[TFormatterName<TFormatterName>] : string[]
formatter
OptionalDefines a formatter to be applied for data formatting, which can either belong to the StandardFormatterName or FormatterName type.
If no specific formatter is set, the value is displayed as is.
Default formatter names are enumerated in StandardFormatterName. Refer to the Default formatters section to see the full list of formatters.
You can also create custom formatters using the AccountManagerInfo.customFormatters property.
Type
TFormatterName
help
OptionalTooltip string for the column.
Type
string
hideByDefault
OptionalSetting hideByDefault to true hides the column by default.
Type
boolean
highlightDiff
OptionalhighlightDiff can be set with StandardFormatterName.FormatPrice
and StandardFormatterName.FormatPriceForexSup formatters to highlight the changes of the field.
If highlightDiff is true`, the custom formatters will also get previous values.
Type
boolean
id
Unique column identifier.
Type
string
isCapitalize
OptionalIf set to true, the first character of every word in the sentence in the column
will be capitalized. The default value is true.
Type
boolean
label
Column title. It will be displayed in the table's header row.
Type
string
notHideable
OptionalSetting notHideable to true prevents the column from being hidden.
Type
boolean
notSortable
OptionalWhen set to true will prevent column sorting.
Type
boolean
showZeroValues
OptionalSetting showZeroValues to true hides any zero values. The default value is true.
Type
boolean
sortProp
OptionalData object key that is used for data sorting.
If sortProp is not provided, the first element of the dataFields array will be used.
If the dataFields array is empty, the column sorting will be unavailable.
Type
string
tooltipProperty
OptionalKey of the row object that is used to get the tooltip to display when hovering over a cell. The tooltip property refers to an object whose keys are property names and values are the corresponding tooltips.
Type
string