SimpleColumn

[ Interface ]

export interface SimpleColumn {
    cellBackground?: TcHmi.SolidColor;
    textColor?: TcHmi.SolidColor;
    label: string;
    control: 'TextBlock'|'TextBox'|'CheckBox'|'ComboBox'|
        'Image'|'PasswordInput'|'NumericInput'|'SpinboxInput'|
        'DateTimeInput'|'TimespanInput'|'Button'|'ToggleButton'|
        'ToggleSwitch'|'RadioButton'|'HTMLElement'|
        'AutoDetectControl';
    width: number;
    widthUnit: TcHmiDatagrid.DimensionUnitOrFactor;
    resize?: boolean;
    minWidth?: number;
    minWIdthUnit?: TcHmi.DimensionUnit;
    editable?: boolean;
    sortable?: boolean;
    horizontalAlignment?: TcHmi.HorizontalAlignment;
    verticalAlignment?: TcHmi.VerticalAlignment;
    format?: TcHmi.IFunction;
    dataDefinitions?: TcHmiDatagrid.DataDefinition[] |
        TcHmiDatagrid.DataDefintion;
    headerHorizontalAlignment?: TcHmi.HorizontalAlignment;
    headerVerticalAlignment?: TcHmi.VerticalAlignment;
    ignoreEscapeSequences?: boolean;
    autoFocusOut?: boolean;
    autoSelectText?: boolean;
    maxTextLength?: number;
}


Properties

Name

Type

Description

cellBackground (optional)

TcHmi.SolidColor

Background color of the cells in this column

textColor (optional)

TcHmi.SolidColor

Text color of the cells in this column

label

string

Column labeling

control

'TextBlock' | 'TextBox' | 'CheckBox' | 'ComboBox' | 'Image' | 'PasswordInput' | 'NumericInput' | 'SpinboxInput' | 'DateTimeInput' | 'TimespanInput' | 'Button' | 'ToggleButton' | 'ToggleSwitch' | 'RadioButton' | 'HTMLElement' | 'AutoDetectControl'

Control type

width

number

Column width

widthUnit

TcHmiDatagrid.DimensionUnitOrFactor

Unit of the column width

resize (optional)

boolean

Resizable

minWidth (optional)

number

Minimum width of the column

minWidthUnit (optional)

TcHmi.DimensionUnit

Unit for the minimum width of the column

editable (optional)

boolean

Changeability

sortable (optional)

boolean

Sortability

horizontalAlignment (optional)

TcHmi.HorizontalAlignment

Horizontal alignment of the text

verticalAlignment (optional)

TcHmi.VerticalAlignment

Vertical alignment of the text

format

TcHmi.IFunction

Formatting function

dataDefinitions (optional)

TcHmiDatagrid.DataDefinition[] | TcHmiDatagrid.DataDefintion

Assignment of srcData to a combo box or image selection.

headerHorizontalAlignment (optional)

TcHmi.HorizontalAlignment

Horizontal alignment of the header

headerVerticalAlignment (optional)

TcHmi.VerticalAlignment

Vertical alignment of the header

ignoreEscapeSequences (optional)

boolean

If set to "true", a backslash in a text is displayed unchanged in the HMI.

autoFocusOut (optional)

boolean

Automatic loss of focus when pressing the Enter or Escape key.

autoSelectText (optional)

boolean

Text selection with cell focus

maxTextLength (optional)

number

Maximum text length

See also

Schema: tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiTreeView.ColumnDefinitionList

SimpleColumn 1:

Available since version 1.12.760