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

Reorder table #213

Closed
feinfinger opened this issue Jul 30, 2019 · 3 comments
Closed

Reorder table #213

feinfinger opened this issue Jul 30, 2019 · 3 comments
Labels

Comments

@feinfinger
Copy link

It would be great to be able to reorder a table column and row-wise.

@Ingvord Ingvord added the UI label Jul 30, 2019
@Ingvord
Copy link
Member

Ingvord commented Jul 30, 2019

@feinfinger , thanks for the issue!

As in #155 this will require some non-trivial implementation. But will see

@Ingvord
Copy link
Member

Ingvord commented Aug 29, 2019

I have found a solution!

One has to use datatable's externalData function in conjunction with onBeforeDrop event handler. This way it is super easy to implement row-wise DnD reordering.

For columns dragColumn:true

@Ingvord
Copy link
Member

Ingvord commented Aug 30, 2019

Done in 34b6ebc The order won't be preserved upon restart though. This can be implemented later - #221

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

No branches or pull requests

2 participants