Displays the list of work sessions currently running considering the navigation context.
Details Navigation
Clicking on a row opens the work-session details popup. Optionally the work-session details can be opened in a full page (see Details Mode option).
The header of the work-session details popup contains the work-session name, description, and a breadcrumb that provides the context of the work-session, and whose tokens can be clicked to quickly jump to related objects (e.g. Customer, Location, Thing).
The work-session details body is generated through a template specified within the work-session definition page. If not specified the click on the row produces no effect.
On the work-session list rows, you can also click directly on specific information to jump to the work-session related objects:
Customer Name / Code ā Customer details page
Location name ā Location details page
Thing Name / Serial Number ā Thing details page
In all other case the work-session details popup/page is opened.
Template Syntax
Below you can find some examples of how to use the component within a template.
<active-work-session-list-widget-v2 [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-v2>
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-v2> | |
---|---|
PROPERTIES | |
Controls Enabled | The boolean flag indicating whether controls (e.g. Search, Export) are enabled on the widget. true false
|
CSS Class | The name(s) of the CSS class used to customize the widget layout. |
Details Mode | The way the details page is opened when the details icon is clicked. If non the details icon is not present. PAGE POPUP NONE
|
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. |
Page Size | The number of items to load on each page. |
Query | The array of conditions filtering out items. |
Query Variable | The id of the page's <things-filter-field> used for searching. |
Title | The title displayed on the top part of the widget box. |
Click On Row Behaviour | The expected behaviour when a row is clicked. OPEN_DETAILS OPEN_CONTEXT_OBJECT
[DEPRECATED] |
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. <property name="metrics.Pieces.DELTA"></property> <property name="metrics.Temperature.MAX"></property> </composite-part> |
Property <property> | |
---|---|
PROPERTIES | |
Column CSS Class | The name(s) of the column CSS class used to customize the table column. |
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 Header | The flag indicated whether the header is visible. true false
|
Visibility Condition | The expression that allows you to reduce the visibility of the element. |
Composite Part <composite-part> | |||||
---|---|---|---|---|---|
PROPERTIES | |||||
Column CSS Class | The name(s) of the column CSS class used to customize the table column. | ||||
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 Header | The flag indicated whether the header is visible. true false
| ||||
Visibility Condition | The expression that allows you to reduce the visibility of the element. | ||||
SUB-ELEMENTS | |||||
Property | The property whose value must be loaded within the composite-part.
|