How to Prevent Drop Before on Specific Indexes
onur-ozguzel opened this issue · 0 comments
onur-ozguzel commented
Hi all;
I' ve a question. For example think i' ve an array like this
originalArray = ['A Tile', 'B Tile', 'Checkpoint', 'C Tile'];
And i' m cloning an item from an another array to this array, let name it 'E Tile'.
While draggin & dropping 'E Tile', i don' t want user to drop this new element before 'Checkpoint', meaning before of the index of 2 in the originalArray. User only can drop this item after the 'Checkpoint'.
Is a rule something like this possible? I' ve tried various ways but couldn' t find a proper workaround.