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

add_widget API call sample

parent 446f59a6
......@@ -98,6 +98,13 @@ Parameters:
- `auto_position` - if `true` then `x`, `y` parameters will be ignored and widget will be places on the first available
position
```javascript
$('.grid-stack).gridstack();
var grid = $('.grid-stack).data('gridstack');
grid.add_widget(el, 0, 0, 3, 2, true);
```
### remove_widget(el)
Removes widget from the grid.
......
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