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.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

"dataTextField": "Name"

dataValueField

The value that is read from or written to the entity (reference to the model).

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

"dataValueField": "Value"