dkniffin / activeadmin_reorderable

Adds drag and drop reordering to your ActiveAdmin tables
MIT License
55 stars 22 forks source link

Live update of position column on reordering #21

Closed yurii-holenko closed 3 months ago

yurii-holenko commented 1 year ago

Add live reload of position value after no error thrown

dkniffin commented 1 year ago

@yurii-holenko can you explain this a bit further? I don't think I understand.

yurii-holenko commented 1 year ago

If you put position column on index page you will see that value doesn't updates after drop. My proposal is to handle this case on frontend. Something like callback after successful request.

dkniffin commented 3 months ago

@yurii-holenko I'm sorry it took me so long to discover this, but the gem already supports this functionality here. All you have to do is add a position class to the column (eg column :position, class: "position")