I have a gridster grid working and I'm trying to get the id of the <li>
item that has been resized.
resize: {
enabled: true,
stop: function (e, ui, $widget) {
//Need the id of the item that was just resized
}
}
I realized my problem was coming from the fact that I had serialized parameters in gridster:
serialize_params: function ($w, wgd) {
return {
DataTypeId: wgd.el[0].id,
Column: wgd.col,
Row: wgd.row,
SizeX: wgd.size_x,
SizeY: wgd.size_y
}
},
so in my "stop" event I was able to use:
var newDimensions = this.serialize($widget)[0]
newDimensions.DataTypeId