vpusher / the-grid

Grid layout custom element with drag and drop capabilities
https://www.webcomponents.org/element/vpusher/the-grid
MIT License
129 stars 31 forks source link

Drop Events #9

Closed yorrd closed 7 years ago

yorrd commented 7 years ago

Hi, it's me again :smile:

For this one, I'd be willing to write a pull request as well since it's not exactly a small fix. Let me know if you want me to do it or rather want to work on it yourself.

I'm using this to represent a database and of course, the changes need to be reflected back into storage. So it'd be an amazing feature to have an event which basically tells you which tile has been moved (as a DOM element for example) and where it is now. This would allow me to listen to this kind of event and update my database items accordingly.

Thanks and have a great day

yorrd commented 7 years ago

Well, I'm not thinking reactively. You can just use the property for width, height, col and row as a double-data binding

vpusher commented 7 years ago

A dedicated event for this seems a good idea since you may not have (or could not) used binding.