A sortable list is not hierarchical but can be sorted, new items can be added as well as items can be deleted. Note that only the visual aspects of these functions are rendered. The implementation of the functions need to be defined seperately (see Sortable for more details).
The style field is_editable allows to enable or disable all modifications on the list. This means that the configuration for sorting, adding and deleting items only has an effect if is_editable is enabled.
Note that the json field children is not supported for sortable list items. Also note that an individual css class can be attached to each item with the json field css. This is useful for ignoring or blocking items when dragging (see Sortable for more details).
For the all examples the following json configuration is used:
[{
"id": 1,
"title": "Item 1"
},{
"id": 2,
"title": "Item 2",
"url": "#",
"css": "custom"
},{
"id": 3,
"title": "Item 3"
}]Unknown Style styleSignature
In this example the fields is_sortable and is_editable are both enabled. Note that in order to use the sortable functionality some javascript is required (see Sortable for more details).
In this example the field is_editable is disabled. Note that links are only shown when not in sorting mode.
If the field url_del is non-empty, on each item a delte button is rendered with a link target as defined by the field url_del. Note that the field is_editable must be enbled.