The component renders draggable items as a tree without the possibility of collapsing. Data-Source must be Object Array
in the form: { id: String, children: [ ], YOUR PROPERTIES }, { ... }
- jComponent
v19|v20
Configuration:
empty {String}
an empty text (default:null
)onchange {String}
optional, a link to thefunction(arr)
- captures items when resorted
Template:
{{ level }} contains a level (number)
{{ value }} contains an item (object)
Try to understand the functionality from the example.
Good to know:
component.items {Object}
contains all references of all items in the formitems[item.id] = item
component.parents {Object}
contains all references of all parents in the formparents[item.id] = parent
- Peter Širka [email protected]
- License