Displays in a single box properties and metrics of a specific thing.
Template Syntax
Below you can find some examples of how to use the component within a template.
<thing-details-widget title="Info">
<property name="serialNumber"></property>
<property name="thingDefinition.name" label="Model Name"></property>
<metric name="Temperature" filter="singleDecimalFormat"></metric>
<metric.....></metric>
</thing-details-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Thing Details <thing-details-widget>
Column Span | The number of columns the widget must span its sub-elements (default 1). Type: INTEGER | Optional
|
Layout | The layout used to display properties in the widget: TABLE: Displays one column for the label and another for the property value. ALTERNATE_ROWS: Displays a gray row for the label and a white row for the property value. Type: ENUM | Optional Values: TABLE, ALTERNATE_ROWS Default Value: TABLE
|
Title | The title displayed on the top part of the widget box. Type: STRING | Optional
|
Rendering | |
CSS Class | The name(s) of the CSS class used to customize the widget layout. Type: STRING | Optional
|
Visibility Condition | The expression that allows you to reduce the visibility of the element. Type: STRING | Optional
|
Sub Elements | |
The metric whose label and current value must be rendered as a widget row. | |
The property whose label and current value must be rendered as a widget row. | |
The widget part combining multiple properties and metrics. | |
Compose the widget title by using properties. |
Metric <metric>
Aggregation | The aggregation to apply on the retrieved value. Type: ENUM | Optional Values: MIN, MIN_HOURS_1, MIN_DAYS_1, MIN_MONTHS_1, MAX, MAX_HOURS_1, MAX_DAYS_1, MAX_MONTHS_1, AVG, AVG_HOURS_1, AVG_DAYS_1, AVG_MONTHS_1, DELTA, DELTA_HOURS_1, DELTA_DAYS_1, DELTA_MONTHS_1
|
Filter | The name of the filter used to transform and display values. Type: FILTER | Optional
|
Label | The metric alternative label. Type: STRING | Optional
|
Name | The metric whose value(s) must be loaded by the widget. Type: METRIC | Required
|
Quick History | The flag enabling the quick history popup used to access the metric historical data. Type: BOOLEAN | Optional Default Value: false
|
Resettable | The flag enabling the reset button. The reset is enabled only for counters and algorithms metrics, moreover, the user must have the WRITE_METRIC_VALUE permission. Type: BOOLEAN | Optional Default Value: false
|
Show Label | The flag indicated whether the label is visible. Type: BOOLEAN | Optional Default Value: true
|
Unit | The unit of measurement to be displayed along the value. Type: STRING | Optional
|
Advanced | |
Visibility Condition | The expression that allows you to reduce the visibility of the element. Type: STRING | Optional
|
Property <property>
Description | The property description. Type: STRING | Optional
|
Filter | The name of the filter used to transform and display values. Type: FILTER | Optional
|
Label | The property alternative label. Type: STRING | Optional
|
Name | The property whose value must be loaded by the widget. Type: PROPERTY | Required
|
Show Label | The flag indicated whether the label is visible. Type: BOOLEAN | Optional Default Value: true
|
Advanced | |
Visibility Condition | The expression that allows you to reduce the visibility of the element. Type: STRING | Optional
|
Composite Part <composite-part>
Description | The composite-part description. Type: STRING | Optional
|
Filter | The filter applied on the composite-part to transform or display its value. Type: FILTER | Optional
|
Label | The label displayed by the widget. Type: STRING | Optional
|
Name | The composite-part name. Type: STRING | Optional
|
Show Label | The flag indicated whether the label is visible. Type: BOOLEAN | Optional Default Value: true
|
Advanced | |
Visibility Condition | The expression that allows you to reduce the visibility of the element. Type: STRING | Optional
|
Sub Elements | |
The metric whose value must be loaded within the composite-part. | |
The property whose value must be loaded within the composite-part. |
Metric <metric>
Name | The metric whose value(s) must be loaded by the widget. Type: METRIC | Required
|
Property <property>
Name | The property whose value must be loaded by the widget. Type: PROPERTY | Required
|
Widget Title <widget-title>
Filter | The filter applied on the composite-part to transform or display its value. Type: FILTER | Optional
|
Sub Elements | |
The property whose value must be loaded within the composite-part. |
Property <property>
Filter | The name of the filter used to transform and display values. Type: FILTER | Optional
|
Name | The property whose value must be loaded by the widget. Type: PROPERTY | Required
|