Column
[ Interface ]
export interface Column {
control: 'TextBlock' | 'TextBox' | 'CheckBox' | 'ComboBox' | 'Image';
name: string;
label: string; editable?: boolean;
dataDefinitions?: TcHmi.Controls.Beckhoff.DataGrid.DataDefinition[];
resize?: boolean;
cellBackground?: TcHmi.SolidColor;
textColor?: TcHmi.SolidColor;
width: number;
widthUnit: TcHmi.DimensionUnit;
minWidth?: number;
minWidthUnit?: TcHmi.DimensionUnit;
horizontalAlignment?: TcHmi.HorizontalAlignment;
verticalAlignment?: TcHmi.VerticalAlignment;
format?: TcHmi.IFunction;
}
Properties
Name | Type | Description |
---|---|---|
control | 'TextBlock', 'TextBox', 'CheckBox', 'ComboBox', 'Image' | Display type |
control (from version 1.12.750) | 'TextBlock', 'TextBox', 'CheckBox', 'ComboBox', 'Image', 'PasswordInput', 'NumericInput', 'SpinboxInput', 'DataTimeInput', 'Button', 'ToggleButton'. 'ToggleSwitch', RadioButton' | Display type |
name | Name of the column | |
label | Column legend | |
editable [optional] | Determines whether the user can change this value. Has no effect if the control is 'TextBlock' or 'Image'. | |
dataDefinitions [optional] | Datadefinition if the control is set to 'Combobox' or 'Image'. | |
resize [optional] | Determines whether the user can change the width of this column. | |
cellBackground | Background color | |
textColor | Text color | |
width | Numerical value of the width | |
widthUnit | Unit of the width | |
minWidth | Numerical value of the minimum width | |
minWidthUnit | Unit of the minimum width | |
horizontalAlignment [optional] | Horizontal alignment | |
verticalAlignment [optional] | Vertical alignment | |
format [optional] | Formatting function |
Available from 1.8 |