FormatColumn

Object used in Format Column function

TypeScript
export interface FormatColumn extends
Extends

SuspendableObject

Properties

PropertyTypeDescriptionDefault
ColumnGroupScopeColumnGroupScopeWhen to format Columns in Column Groups ('Expanded', 'Collapsed', 'Both')
DisplayFormatDisplayFormatDisplay Format to apply to Column. Can be a concrete AdaptableFormat (Numeric, String or Date) or the name of a numeric preset such as 'Percentage', 'Thousand', 'Million', 'Dollar', 'Sterling', which is resolved at render time.
NamestringName of the Format Column definition
RowScopeRowScopeWhich types of Rows to apply format (data, grouped, summary, total)
RuleFormatColumnRuleRule to decide whether to apply Format; if undefined Format is always applied
ScopeColumnScopeWhere Format will be applied: whole Row, some Columns, or Columns of DataType
StyleAdaptableStyleAdapTable Style to apply
TargetFormatColumnTargetWhere in Column to apply Format (cell or columnHeader)'cell'
IsReadOnlybooleanSets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsSuspendedbooleanSuspends (i.e. turns off) an Adaptable Object

Property Details

ColumnGroupScope

When to format Columns in Column Groups ('Expanded', 'Collapsed', 'Both')

TypeScript
ColumnGroupScope?: ColumnGroupScope;
Property Value

ColumnGroupScope

DisplayFormat

Display Format to apply to Column. Can be a concrete AdaptableFormat (Numeric, String or Date) or the name of a numeric preset such as 'Percentage', 'Thousand', 'Million', 'Dollar', 'Sterling', which is resolved at render time.

TypeScript
DisplayFormat?: DisplayFormat;
Property Value

DisplayFormat

Name

Name of the Format Column definition

TypeScript
Name: string;
Property Value

string

RowScope

Which types of Rows to apply format (data, grouped, summary, total)

TypeScript
RowScope?: RowScope;
Property Value

RowScope

Rule

Rule to decide whether to apply Format; if undefined Format is always applied

TypeScript
Rule?: FormatColumnRule;
Property Value

FormatColumnRule

Scope

Where Format will be applied: whole Row, some Columns, or Columns of DataType

TypeScript
Scope: ColumnScope;
Property Value

ColumnScope

Style

AdapTable Style to apply

TypeScript
Style?: AdaptableStyle;
Property Value

AdaptableStyle

Target

Where in Column to apply Format (cell or columnHeader)

TypeScript
Target?: FormatColumnTarget;
Default Value

'cell'

Property Value

FormatColumnTarget

IsSuspended

Inherited from SuspendableObject

Suspends (i.e. turns off) an Adaptable Object

TypeScript
IsSuspended?: boolean;
Property Value

boolean

IsReadOnly

Inherited from AdaptableObject

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

TypeScript
IsReadOnly?: boolean;
Property Value

boolean