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
If add_new_at is set to bottom then items moved into a list because of scope changes are added at the requested position. If add_new_at is set to top then the items are always added at the top, regardless of the requested position.
This is important when you have a grid of items and want to support dragging between lists. In our use-case it makes more sense for add_to_list_top to work the same way as add_to_list_bottom and to respect the existing value of the position column. This would mean that truly new items would be added to the top, but items dragged between lists would stay in the position you dragged them to (because the position is already set).
The text was updated successfully, but these errors were encountered:
k1w1
added a commit
to k1w1/acts_as_list
that referenced
this issue
Nov 10, 2014
If
add_new_at
is set tobottom
then items moved into a list because of scope changes are added at the requested position. Ifadd_new_at
is set totop
then the items are always added at the top, regardless of the requested position.This is important when you have a grid of items and want to support dragging between lists. In our use-case it makes more sense for
add_to_list_top
to work the same way asadd_to_list_bottom
and to respect the existing value of the position column. This would mean that truly new items would be added to the top, but items dragged between lists would stay in the position you dragged them to (because the position is already set).The text was updated successfully, but these errors were encountered: