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> | |
---|---|
PROPERTIES | |
Collapse / Expand | The flag indicating whether the widget is collaspible. true false
|
Column Span | The number of columns the widget must span its sub-elements (default 1). |
CSS Class | The name(s) of the CSS class used to customize the widget layout. |
Layout | The layout used to display properties in the widget:
TABLE ALTERNATE_ROWS
|
Title | The title displayed on the top part of the widget box. |
Visibility Condition | The expression that allows you to reduce the visibility of the element. |
SUB-ELEMENTS | |
Metric | The metric whose label and current value must be rendered as a widget row. |
Property | The property whose label and current value must be rendered as a widget row. |
Composite Part | The widget part combining multiple properties and metrics. <metric name="Temperature"></metric> <metric name="Humidity"></metric> <property name="properties.type"></property> </composite-part> |
Widget Title | Compose the widget title by using properties. <property name="name"></property> <property name="connectionStatus" filter="connectionStatus"></property> </widget-title> |
Metric <metric> | |
---|---|
PROPERTIES | |
Aggregation | The aggregation to apply on the retrieved value. 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. |
Label | The metric alternative label. |
Name | The metric whose value(s) must be loaded by the widget. |
Quick History | The flag enabling the quick history popup used to access the metric historical data. true 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. true false
|
Show Label | The flag indicated whether the label is visible. true false
|
Unit | The unit of measurement to be displayed along the value. |
Visibility Condition | The expression that allows you to reduce the visibility of the element. |
Property <property> | |
---|---|
PROPERTIES | |
Description | The property description. |
Filter | The name of the filter used to transform and display values. |
Label | The property alternative label. |
Name | The property whose value must be loaded by the widget. |
Show Label | The flag indicated whether the label is visible. true false
|
Visibility Condition | The expression that allows you to reduce the visibility of the element. |
Composite Part <composite-part> | |||||
---|---|---|---|---|---|
PROPERTIES | |||||
Description | The composite-part description. | ||||
Filter | The filter applied on the composite-part to transform or display its value. | ||||
Label | The label displayed by the widget. | ||||
Name | The composite-part name. | ||||
Show Label | The flag indicated whether the label is visible. true false
| ||||
Visibility Condition | The expression that allows you to reduce the visibility of the element. | ||||
SUB-ELEMENTS | |||||
Metric | The metric whose value must be loaded within the composite-part.
| ||||
Property | The property whose value must be loaded within the composite-part.
|
Widget Title <widget-title> | |||||||
---|---|---|---|---|---|---|---|
PROPERTIES | |||||||
Filter | The filter applied on the composite-part to transform or display its value. | ||||||
SUB-ELEMENTS | |||||||
Property | The property whose value must be loaded within the composite-part.
|