@@ -147,7 +147,7 @@ The Typescript `GridStackEvent` list all possible values, and nothing else is su
147147Called when widgets are being added to a grid
148148
149149``` js
150- grid .on (' added' , function (event : GridEvent , items : GridStackNode []) {
150+ grid .on (' added' , function (event : Event , items : GridStackNode []) {
151151 items .forEach (function (item ) {... });
152152});
153153```
@@ -157,15 +157,15 @@ grid.on('added', function(event: GridEvent, items: GridStackNode[]) {
157157Occurs when widgets change their position/size due to constrain or direct changes
158158
159159``` js
160- grid .on (' change' , function (event : GridEvent , items : GridStackNode []) {
160+ grid .on (' change' , function (event : Event , items : GridStackNode []) {
161161 items .forEach (function (item ) {... });
162162});
163163```
164164
165165### disable(event)
166166
167167``` js
168- grid .on (' disable' , function (event : GridEvent ) {
168+ grid .on (' disable' , function (event : Event ) {
169169 let grid: GridStack = event .target .gridstack ;
170170});
171171```
@@ -175,15 +175,15 @@ grid.on('disable', function(event: GridEvent) {
175175called when grid item is starting to be dragged
176176
177177``` js
178- grid .on (' dragstart' , function (event : GridEvent , el : GridItemHTMLElement ) {
178+ grid .on (' dragstart' , function (event : Event , el : GridItemHTMLElement ) {
179179});
180180```
181181
182182### dragstop(event, el)
183183called after the user is done moving the item, with updated DOM attributes.
184184
185185``` js
186- grid .on (' dragstop' , function (event : GridEvent , el : GridItemHTMLElement ) {
186+ grid .on (' dragstop' , function (event : Event , el : GridItemHTMLElement ) {
187187 let x = parseInt (el .getAttribute (' data-gs-x' )) || 0 ;
188188 // or all values...
189189 let node: GridStackNode = el .gridstackNode ; // {x, y, width, height, id, ....}
@@ -195,7 +195,7 @@ grid.on('dragstop', function(event: GridEvent, el: GridItemHTMLElement) {
195195called when an item has been dropped and accepted over a grid. If the item came from another grid, the previous widget node info will also be sent (but dom item long gone).
196196
197197``` js
198- grid .on (' dropped' , function (event : GridEvent , previousWidget : GridStackNode , newWidget : GridStackNode ) {
198+ grid .on (' dropped' , function (event : Event , previousWidget : GridStackNode , newWidget : GridStackNode ) {
199199 console .log (' Removed widget that was dragged out of grid:' , previousWidget);
200200 console .log (' Added widget in dropped grid:' , newWidget);
201201});
@@ -204,7 +204,7 @@ grid.on('dropped', function(event: GridEvent, previousWidget: GridStackNode, new
204204### enable(event)
205205
206206``` js
207- grid .on (' enable' , function (event : GridEvent ) {
207+ grid .on (' enable' , function (event : Event ) {
208208 let grid: GridStack = event .target .gridstack ;
209209});
210210```
@@ -214,7 +214,7 @@ grid.on('enable', function(event: GridEvent) {
214214Called when items are being removed from the grid
215215
216216``` js
217- grid .on (' removed' , function (event : GridEvent , items : GridStackNode []) {
217+ grid .on (' removed' , function (event : Event , items : GridStackNode []) {
218218 items .forEach (function (item ) {... });
219219});
220220```
@@ -224,7 +224,7 @@ grid.on('removed', function(event: GridEvent, items: GridStackNode[]) {
224224called before the user starts resizing an item
225225
226226``` js
227- grid .on (' resizestart' , function (event : GridEvent , el : GridItemHTMLElement ) {
227+ grid .on (' resizestart' , function (event : Event , el : GridItemHTMLElement ) {
228228});
229229```
230230
@@ -233,7 +233,7 @@ grid.on('resizestart', function(event: GridEvent, el: GridItemHTMLElement) {
233233called after the user is done resizing the item, with updated DOM attributes.
234234
235235``` js
236- grid .on (' resizestop' , function (event : GridEvent , el : GridItemHTMLElement ) {
236+ grid .on (' resizestop' , function (event : Event , el : GridItemHTMLElement ) {
237237 let width = parseInt (el .getAttribute (' data-gs-width' )) || 0 ;
238238 // or all values...
239239 let node: GridStackNode = el .gridstackNode ; // {x, y, width, height, id, ....}
0 commit comments