hootsuite / grid

Drag and drop library for two-dimensional, resizable and responsive lists
http://hootsuite.github.io/grid/
Apache License 2.0
3.57k stars 279 forks source link

Get data attributes from element in DOM #87

Open cdekok opened 8 years ago

cdekok commented 8 years ago

Currently the data attributes in the DOM are not updated is this intentional for performance? If so what is the best way to get the current position from an element I only see an internal method: _getItemByElement

Can we change it to either update the data attributes in the DOM or make _getItemByElement part of the public API.