I know we have several topics covering draggable elements, whether kanban or lists, but I want to request something more complete for the community:
Analyzing VUEDRAGGABLE and SORTABLEJS, they have all the necessary properties to carry out ANY type of manipulation of draggable elements, whether table, list, double lists, nested lists… in short, countless possibilities.
My request is to implement a group of draggable elements and sort them in the list of elements all within “draggable”.
Even though we don’t currently have anything like this available, could you help me on how to enable (at least HANDLE) via NPM?
Yes, I’m trying exhaustively to mess with them, but my difficulty is creating something like vuedraggable(“handle list”). It would be a combination of our DataGrid and Stackable elements…
Currently I can’t use the input features in a dynamic list (when I load a collection, for example - I already opened an old topic about this). And this issue about dynamic list input is not just about draggables. It also occurs in the static list.
In the example link above is my goal:
the element that releases the draggable element is just an icon, where I can sort it;
Have an input field with “inline” editing.
I know that existing tools already have great features. I just thought we could have more possibilities to delight and facilitate the operation of our end customers.
About NPM, it’s because I’m a complete “No-Coder” hahaha so I don’t really know how to work with it!
It is all possible. Check this out.
I’m using components for each line, and handling all the updates inside the components, that will fix your problems with using input features.
I made progress in creating this element, but I’m having difficulty updating the input value:
I created the input component, which has the properties “Type”, “Key” and “Value”.
When I place this component in the Reorder List, the input value only updates in the first line. I imagine that when the input is modified (on change), it should update some variable within the component, but it doesn’t happen…
I would appreciate it if you could elaborate a little on this component…
PS.: I tried to create 2 components: one that is the entire line, placing the inputs inside the “div”… and another with just the input and the line I made it separate in the Reorder List…
It’s because you have selected the top component before going to preview mode.
The variable actually changes, but you see the logs and variables from the top component because that is the selected one.