malinky/malinky-ajax-pagination

Push newly loaded items into array

Opened this issue · 2 comments

bUxEE commented

Hello, because of the grid system I use, in order to enable this plugin in my theme I would need to push the newly loaded items into an array in my script.
How could I achieve this?
example function in callback settings: mygrid.items.push(newCreatedItemOrArrayFromMalinkyAjaxPagination)
What would be the variable for the item/s?

yumyo commented

Was wondering the same thing ...

yumyo commented

@bux23 loadedPosts is the array of new elements received by the callback.