Closed ptorrent closed 7 months ago
Hello,
I would like to drop grid item on a trash button to remove it.
Is that possible with the dragstop event ?
grid.on('dragstop', function(e){ e.target == MY BOUTON ) widget remove... })
the event passed to dragstop callback don't seems to be a native drag & drop event... ?
Even with this, there is no drag & drop event
BUTTON.addEventListener("dragover", (event) => { console.error('drago over') event.preventDefault(); }); BUTTONaddEventListener("drop", (event) => { event.preventDefault(); console.error('drop') });
Thanks for your support !
OK must use removable grid option !
Hello,
I would like to drop grid item on a trash button to remove it.
Is that possible with the dragstop event ?
the event passed to dragstop callback don't seems to be a native drag & drop event... ?
Even with this, there is no drag & drop event
Thanks for your support !