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

Need callback function on column drag event #31

Open
Parthvora opened this issue Jan 27, 2016 · 3 comments
Open

Need callback function on column drag event #31

Parthvora opened this issue Jan 27, 2016 · 3 comments
Assignees

Comments

@Parthvora
Copy link

Hello,
Is there any way to call an custom function while column order gets changed by dragging and also can we get both orders i.e old column order and new column order in that callback function?

Thanks

@ekokotov
Copy link
Owner

Did it in dev for now.
like:
<table ... on-drag="logDrag($oldOrder, $newOrder)" ... >
then in your controller:
$scope.logDrag = function(oldOrder, newOrder) { console.log(oldOrder, newOrder) };
And you will get in console old and new order of headers. Is it what you need ?

@Parthvora
Copy link
Author

Yup, thats exactly what I need.

@ekokotov
Copy link
Owner

It's in github project now. Will be added in next release. (will be released in few days and you will be able to update using bower)

@ekokotov ekokotov self-assigned this Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants