Displays the list of partners visible by the current user and navaigation context.
Template Syntax
Below you can find some examples of how to use the component within a template.
<partner-list-widget>
<property name="code"></property>
<property name="name" label="Name"></property>
<property name="properties.city"></property>
<property name="properties.country" label="Country"></property>
<property name="customerCount"></property>
</partner-list-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Partner List <partner-list-widget-v2> | |
---|---|
PROPERTIES | |
Actions Enabled | The boolean flag indicating whether actions (e.g. Add button) are enabled on the widget. true false
|
Block Column Span | The number of columns on which to span the properties displayed in each list block (default 1). |
Bulk Controls Enabled | The boolean flag indicating whether bulk selection and buttons (e.g. Tagging, Firmware Update) are enabled on the widget. true false
|
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. |
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. |
Initial Sorting | The array of property names and criteria to use for sorting (e.g. ['name','asc','serialNumber','desc']). |
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. |
Search Fields | The array of fields used to filter out the objects when searching by a generic key. |
Title | The title displayed on the top part of the widget box. |
SUB-ELEMENTS | |
Property | The property whose label and current value must be rendered as a widget row. |
Composite Part | The widget part combining multiple properties. <property name="name"></property> <property name="country"></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
| ||||
Sorting Criteria | The comma seprated list of property names and criteria to use for sorting the list column associated to this composite-part (e.g. properties.p1,ASC,properties.p2,DESC). | ||||
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.
|