You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a column is dropped I need to call a custom API that stores the new order. I need to get a handle on the column heading just dropped because it has data attributes with data I need to send. Looks like the persistState function just has a handle on the table.
Is there anyway to know which heading was just dropped within the table and get a handle on that?
Glad I found this plugin. Does just about everything I need it to do.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks! If it's still helpful to you (or anyone else), I figured it out. Here's how to get the element that was just dropped:
$('#main_table').dragtable({persistState: function(data){dropped_element=$(data.el).find("th")[data.endIndex-1];// Do something with the element that was just dropped.}});
After a column is dropped I need to call a custom API that stores the new order. I need to get a handle on the column heading just dropped because it has data attributes with data I need to send. Looks like the persistState function just has a handle on the table.
Is there anyway to know which heading was just dropped within the table and get a handle on that?
Glad I found this plugin. Does just about everything I need it to do.
Thanks!
The text was updated successfully, but these errors were encountered: