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
When enabled, the position of item elements will exposed as data, which you can retrieve with jQuery's data method with <code><spanclass="s1">'isotope-item-position'</span></code> name space. Position is return as an object with `x` and `y`;
172
+
173
+
### Example
174
+
175
+
{% highlight javascript %}
176
+
177
+
$('#container').isotope({
178
+
itemSelector: '.element',
179
+
itemPositionDataEnabled: true
180
+
})
181
+
// log position of each item
182
+
.find('.element').each(function(){
183
+
var position = $(this).data('isotope-item-position');
184
+
console.log('item position is x: ' + position.x + ', y: ' + position.y );
0 commit comments