Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8089bf

Browse files
committed
add_widget API call sample
1 parent 446f59a commit c8089bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ Parameters:
9898
- `auto_position` - if `true` then `x`, `y` parameters will be ignored and widget will be places on the first available
9999
position
100100

101+
```javascript
102+
$('.grid-stack).gridstack();
103+
104+
var grid = $('.grid-stack).data('gridstack');
105+
grid.add_widget(el, 0, 0, 3, 2, true);
106+
```
107+
101108
### remove_widget(el)
102109

103110
Removes widget from the grid.

0 commit comments

Comments
 (0)