ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.04k stars 1.2k forks source link

data-row, data-col values error #585

Open heobh75 opened 7 years ago

heobh75 commented 7 years ago

**1. I want to know all values. (data-row,data-col,data-sizex,data-sizey ,etc.) for example, I can't get data-row, data-col values. below is sample code.

$("#grister > ul > li").each(function(i){ var id = $(this).attr("id"); -----> W10,W12 var posRow = $(this).attr("data-row"); -----> 10,10 (It return wrong value, data-row="4" is correct value) var pssCol = $(this).attr("data-col"); -----> 10,10 (It return wrong value, data-col="3" is correct value) var sizex = $(this).attr("data-sizex"); -----> 3,3 var sizey = $(this).attr("data-sizey"); ----->6,6 }

2. Drag move all want to know the changed value.

value

Help :(