๐งDraggable
Last updated
Last updated
everyone needs a draggable input on a project, but it's very hard to handle, for this, we created a very easy component to make it easy to handle draggable objects and make it very easy to store and sort them on the database.
you can start using this like this
our component works with multi-levels which means you can create a tree of objects just by using this component you can change :levels
as you like to be the count of levels
and to make this component work you must pass options to it where :options
is an array of objects you need to sort
and at the end of this, you need to add :url
and we will hit this your everytime you make a change on sorting inside the dragging area
the last attribute is :order-by
and we use it to order the objects by it
to store this object and make the ordering successful you can just use this code on your store method
this method takes all objects on the draggable and sorting it
this component used vue-draggable-next