Comments (3)
As long as you are appending items and not prepending, it should be relatively easy to get the last item loaded:- look at the number of cards in each column and pick the last card from the column with the most cards. In case there are multiple columns with the maximum number of cards pick the card from the right most column.
This is will work for now, but won't work once the column lengths are more 'balanced'.
from salvattore.
Yes, this is what I'm doing but I would like a solution provided by the library. Maybe a solution more universal (and that work when the balanced columns is implemented) is a method that return all elements of the grid in the original order. For example:
var elements = salvattore['get_elements'](grid);
var $lastElement = $(elements).last();
from salvattore.
+1
from salvattore.
Related Issues (20)
- 'Working' on Safari and not on other browsers
- GET Paramater no class
- Adding columnsChange dispatch after init HOT 1
- Salvattore not distributing the elements between columns
- Parent divs being removed HOT 1
- Having problem using "grid" data-columns in Wordpress with Be Theme
- Twitter Widget gets removed on Android and MS Edge
- Feature website
- Nesting with two versions of the script HOT 1
- Most example sites go to spam sites
- Github 'examples' doesnt work
- Feature website - www.HazAlerts.com.au
- Feature website - ThemesMatic.com
- how to add filter on salvattore, like the functinality of isotope?
- salvattore is searching for Maintainers! HOT 1
- Feature website: https://rolplus.net/publicaciones
- [PROBLEM] Need a first DIV width like 2 column and not 1
- Salvattore and Lazyload
- Columns not changing when resizing window - only on reload
- Feature website - wastedyouth.club
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salvattore.