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
First of all, I want to thank you for this library that solved quickly a requirement I had. Nice!
I needed to modify the library, so when adding new items, they prepend to the already created ones.
It was so easy that I put here my changes (sorry, I am not able right now to make a PR... if anyone can it would be fine).
In jquery.repeater.js, find function appendItem, and in the return value, modify:
Hi,
First of all, I want to thank you for this library that solved quickly a requirement I had. Nice!
I needed to modify the library, so when adding new items, they prepend to the already created ones.
It was so easy that I put here my changes (sorry, I am not able right now to make a PR... if anyone can it would be fine).
In jquery.repeater.js, find function appendItem, and in the return value, modify:
$list.append($item);
with
if(!fig.prependItems){
$list.append($item);
}else{
$list.prepend($item);
}
Now, you just need to add "prependItem: true" to the initialization object, and it will prepend items. If not added, all remain the same.
Regards
The text was updated successfully, but these errors were encountered: