Commit d59bdab4 authored by Pavel Reznikov's avatar Pavel Reznikov
Browse files

update events

parent 9e24aae1
......@@ -77,7 +77,7 @@ Usage
## Events
### onchange
### onchange(items)
Occurs when widgets change their position/size
......@@ -91,6 +91,43 @@ Occurs when widgets change their position/size
});
```
### ondragstart(event, ui)
```javascript
$('.grid-stack').on('dragstart', function (event, ui) {
var grid = this;
var element = event.target;
});
```
### ondragstop(event, ui)
```javascript
$('.grid-stack').on('dragstop', function (event, ui) {
var grid = this;
var element = event.target;
});
```
### onresizestart(event, ui)
```javascript
$('.grid-stack').on('resizestart', function (event, ui) {
var grid = this;
var element = event.target;
});
```
### onresizestop(event, ui)
```javascript
$('.grid-stack').on('resizestop', function (event, ui) {
var grid = this;
var element = event.target;
});
```
## API
### add_widget(el, x, y, width, height, auto_position)
......
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