Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use it on table to drag a tr? #23

Closed
kasraJannatiNgen opened this issue Oct 19, 2021 · 1 comment
Closed

Can we use it on table to drag a tr? #23

kasraJannatiNgen opened this issue Oct 19, 2021 · 1 comment

Comments

@kasraJannatiNgen
Copy link

No description provided.

@code2prog
Copy link

code2prog commented Feb 5, 2022

yes. replace tbody wrap with draggable component like this:

<draggable v-model="array" tag="tbody" handle=".handle" @change="orderChanged">
                <tr v-for="elem in array">
<td><span class="handle">handle</span></td>
<td></td>
</tr>
</draggable>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants