Commit 8dbcb21d authored by d's avatar d
Browse files

Update documentation.

parent c4fa1328
......@@ -509,6 +509,7 @@ Changes
#### v0.3.0-dev (Development Version)
- trigger custom event for resizestop (gsresizestop) ([#577](https://github.com/troolee/gridstack.js/issues/577)).
- prevent dragging/resizing in oneColumnMode ([#593](https://github.com/troolee/gridstack.js/issues/593)).
- add oneColumnModeClass option to grid.
- remove 768px CSS styles, moved to grid-stack-one-column-mode class.
......
This diff is collapsed.
......@@ -1187,6 +1187,9 @@
});
o.find('.grid-stack-item').trigger('resizestop');
}
if (event.type == 'resizestop') {
self.container.trigger('gsresizestop', o);
}
};
this.dd
......
This diff is collapsed.
This diff is collapsed.
......@@ -17,7 +17,7 @@ gridstack.js API
- [enable(event)](#enableevent)
- [removed(event, items)](#removedevent-items)
- [resizestart(event, ui)](#resizestartevent-ui)
- [resizestop(event, ui)](#resizestopevent-ui)
- [gsresizestop(event, ui)](#gsresizestopevent-ui)
- [API](#api)
- [addWidget(el[, x, y, width, height, autoPosition, minWidth, maxWidth, minHeight, maxHeight, id])](#addwidgetel-x-y-width-height-autoposition-minwidth-maxwidth-minheight-maxheight-id)
- [batchUpdate()](#batchupdate)
......@@ -193,12 +193,11 @@ $('.grid-stack').on('resizestart', function(event, ui) {
});
```
### resizestop(event, ui)
### gsresizestop(event, ui)
```javascript
$('.grid-stack').on('resizestop', function(event, ui) {
var grid = this;
var element = event.target;
$('.grid-stack').on('gsresizestop', function(event, elem) {
var newHeight = $(elem).attr('data-gs-height');
});
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment