Button
[ Interface ]
export interface Button {
name: string;
value?: any;
width: number;
height: number;
widthMode?: 'Value' | 'Content';
heightMode?: 'Value' | 'Content';
minWidth?: number;
maxWidth?: number;
minHeight?: number;
maxHeight?: number;
textPadding?: TcHmi.FourSidedCss;
text: string;
tooltip?: string;
keepPopupOpen?: boolean;
actions?: TcHmi.Trigger.Action[];
}Properties
Name | Type | Description |
|---|---|---|
name | Name of the button | |
value | Value of the button | |
width | Width of the button | |
height | Height of the button | |
widthMode | 'Value', 'Content', undefined | Determines whether the width is taken from the width value (Value) or determined based on the text length (Content). |
heightMode | 'Value', 'Content', undefined | Determines whether the height is taken from the height value (Value) or determined based on the text length (Content). |
minWidth | The minimum width of the button | |
maxWidth | The maximum width of the button | |
minHeight | The minimum height of the button | |
maxHeight | The maximum height of the button | |
textPadding | Text padding of the button | |
text | Text of the button | |
tooltip | Tooltip of the button | |
keepPopupOpen | Value that specifies whether the popup should remain open. | |
actions | List of actions of the button |
Schema: tchmi:framework#/definitions/TcHmi.Controls.System.TcHmiPopup.ButtonList
![]() | Available since version 1.12.760 |
