You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking for an event for when a widget is dragged from the toolbar and onto the grid (when the placeholders are placed).
Your environment
version of gridstack.js - 10.3.1
Arc Browser/MacOS
Steps to reproduce
Expected behavior
I'd like to know if there is any event for when a widget is dragged from the toolbar and onto the grid (when the placeholders are placed). I'm looking to write a behaviour wherein widgets in a row automatically resize their widths to allow placement of a new widget (dragged from the toolbar).
The text was updated successfully, but these errors were encountered:
those are the public events
/** list of possible events, or space separated list of them */
export type GridStackEvent = 'added' | 'change' | 'disable' | 'drag' | 'dragstart' | 'dragstop' | 'dropped' |
'enable' | 'removed' | 'resize' | 'resizestart' | 'resizestop' | 'resizecontent';
but I suppose you could have your own OS level addEventListener('mouseenter') which is what grid uses (on desktop, 'pointerenter' on mobile) or maybe even our own generated 'dropover'
if you want to sponsor this, it could probably be supported by the lib.
Subject of the issue
Looking for an event for when a widget is dragged from the toolbar and onto the grid (when the placeholders are placed).
Your environment
Steps to reproduce
Expected behavior
I'd like to know if there is any event for when a widget is dragged from the toolbar and onto the grid (when the placeholders are placed). I'm looking to write a behaviour wherein widgets in a row automatically resize their widths to allow placement of a new widget (dragged from the toolbar).
The text was updated successfully, but these errors were encountered: