Displays the list of work sessions currently running considering the navigation context.
Design View
In the visual editor, you can find the Active Work Session List icon under the Work Sessions component palette group.
You can drag and drop the widget in the grid, and then according to your needs configure the following sub-elements:
Property: the property whose value must be displayed within the work session detail row.
Composite Part: the composite part whose value must be displayed within the work session detail row.
Code View
Template Syntax
Below you can find some examples of how to use the component within a template.
<active-work-session-list-widget [title]="'Active Cookings'"> <property name="name"></property> <property name="date"></property> <property name="thing.serialNumber"></property> <property name="description"></property> <property name="duration"></property> </active-work-session-list-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Active Work Session List <active-work-session-list-widget> | |
---|---|
PROPERTIES | |
CSS Class | The name(s) of the CSS class used to customize the widget layout.
Type: STRING | Optional class="my-custom-class" |
Empty Message | The blank message to be displayed in the widget in case no item was found. To manage translations, you can define a label and use the key as the value of the property.
Type: STRING | Optional emptyMessage="No customer found" |
Show Header | The flag indicated whether the header is visible.
Type: BOOLEAN | Optional | Values: true false [showHeader]="true" |
Title | The title displayed on the top part of the widget box.
Type: STRING | Optional [title]="'Details'" |
Visibility Condition | The expression that allows you to reduce the visibility of the element.
Type: STRING | Optional *ngIf="getUser().organizationId != null" |
SUB-ELEMENTS | |
Property | The property whose value must be displayed within the work session detail row. multiple | optional <property name="serialNumber"></property> |
Composite Part | The composite part whose value must be displayed within the work session detail row. multiple | optional <composite-part> <property name="metrics.Pieces.DELTA"></property> <property name="metrics.Temperature.MAX"></property> </composite-part> |
Property <property> | |
---|---|
PROPERTIES | |
Filter | The name of the filter used to transform and display values.
Type: FILTER | Optional filter="fooBarFilter" |
Label | The property alternative label.
Type: STRING | Optional label="Temperature" |
Name | The property whose value must be loaded by the widget.
Type: PROPERTY | Mandatory name="serialNumber" |
Visibility Condition | The expression that allows you to reduce the visibility of the element.
Type: STRING | Optional *ngIf="getUser().organizationId != null" |
Composite Part <composite-part> | |||||
---|---|---|---|---|---|
PROPERTIES | |||||
Filter | The filter applied on the composite-part to transform or display its value.
Type: FILTER | Optional filter="fooBarFilter" |
||||
Label | The label displayed by the widget.
Type: STRING | Optional label="fooBar" |
||||
Name | The composite-part name.
Type: STRING | Optional name="fooBar" |
||||
Visibility Condition | The expression that allows you to reduce the visibility of the element.
Type: STRING | Optional *ngIf="getUser().organizationId != null" |
||||
SUB-ELEMENTS | |||||
Property | The property whose value must be loaded within the composite-part. multiple | optional <property name="serialNumber"></property>
|
Comments
0 comments
Please sign in to leave a comment.