is-sortable-list
Here certain properties are listed, which can be sorted with drag-and-drop.
Property |
Description |
required |
Example |
template |
If the displayed values within the list are to be edited, e.g. in terms of design, you can work with a template here. You can find more information about the templates here. |
|
"template": "<div style='display: flex; justify-content:flex-start;margin-left: 3px;'><div class='truncate' style='flex: 1 1 auto;'>#=entity.threshold#</div><div class='truncate' style='flex:0 0 50px; margin-left:8px; font-style:italic; background-color:#=entity.color#'></div></div>" |
disableSortability |
If sorting is not to be possible, this value must result in "true". |
|
"disableSortability":false |
onItemClick |
If an event is to be called when an item in the list is clicked, you can specify the function name here that will be called in the app. |
|
"onItemClick": "openPriceModifiersDialog" |
onButtonClick |
If you want to have an additional button that adds new elements, for example, you must enter a function name here. If the property is not assigned a value, there is no button. |
|
"onButtonClick": "openPriceModifiersDialog" |
dataSourceURL |
Here you can specify the URL from which data is to be pulled. |
|
"dataSourceUrl": "ResourcePlanningLookup/GetObergruppen" |
dataTextField |
The text to be shown in the list. |
|
"dataTextField": "Name" |
dataValueField |
The value that is read from or written to the entity (reference to the model). |
|
"dataValueField": "Value" |