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'
| 'CustomMessage'
| 'DirectImage;
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) | Background color of the cells in this column | |
textColor (optional) | Text color of the cells in this column | |
label | Column labeling | |
control | 'TextBlock' | 'TextBox' | 'CheckBox' | 'ComboBox' | 'Image' | 'PasswordInput' | 'NumericInput' | 'SpinboxInput' | 'DateTimeInput' | 'TimespanInput' | 'Button' | 'ToggleButton' | 'ToggleSwitch' | 'RadioButton' | 'HTMLElement' | 'AutoDetectControl' | 'DirectImage' | Control type |
width | Column width | |
widthUnit | Unit of the column width | |
resize (optional) | Resizable | |
minWidth (optional) | Minimum width of the column | |
minWidthUnit (optional) | Unit for the minimum width of the column | |
editable (optional) | Changeability | |
sortable (optional) | Sortability | |
horizontalAlignment (optional) | Horizontal alignment of the text | |
verticalAlignment (optional) | Vertical alignment of the text | |
format | Formatting function | |
dataDefinitions (optional) | TcHmiDatagrid.DataDefinition[] | TcHmiDatagrid.DataDefintion | Assignment of srcData to a combo box or image selection. |
headerHorizontalAlignment (optional) | Horizontal alignment of the header | |
headerVerticalAlignment (optional) | Vertical alignment of the header | |
ignoreEscapeSequences (optional) | If set to "true", a backslash in a text is displayed unchanged in the HMI. | |
autoFocusOut (optional) | Automatic loss of focus when pressing the Enter or Escape key. | |
autoSelectText (optional) | Text selection with cell focus | |
maxTextLength (optional) | Maximum text length |
See also
Schema: tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiTreeView.ColumnDefinitionList
![]() | Available since version 1.12.760 |
