attributes

Type: Array of JSON objects (attributes)
Required: Yes

"attributes": [
   {
      "name": "data-tchmi-value",
      "propertyName": "Value",
      "propertySetterName": "setValue",
      "propertyGetterName": "getValue",
      "displayName": "Value",
      "visible": true,
      "themeable": "Standard",
      "displayPriority": 10,
      "type": "tchmi:general#/definitions/Boolean",
      "category": "Value",
      "description": "",
      "readOnly": false,
      "bindable": true,
      "heritable": true,
      "defaultValue": false,
      "defaultValueInternal": false
   }
]

The attributes define the data interfaces to the TwinCAT HMI Engineering. The attributes of the control are displayed in the Properties window of the Engineering under "ShowProperties". Any number of attributes can be defined in a control.

By default, the attribute array contains the type attribute that is required for each control and must not be removed. This attribute specifies that the control is of type tchmi-framework-control-js1:

{
   "name": "data-tchmi-type",
   "displayName": "",
   "propertyName": "type",
   "propertySetterName": "",
   "propertyGetterName": "getType",
   "visible": false,
   "type": "tchmi:framework#/definitions/ControlType",
   "category": "None",
   "description": "Type of the control.",
   "requiredOnCompile": true,
   "readOnly": true,
   "bindable": false,
   "heritable": false,
   "defaultValue": "framework-control-js1",
   "defaultValueInternal": null
}

The individual properties of an attribute are described on the following pages.

Type: Specifies the data type of the property.
Required: Specifies whether the property is required for the attribute (yes) or is optional (no).