mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add tests for addWidget
This commit is contained in:
@@ -17,6 +17,8 @@ var gsFromElement: GridStack = element.data("gridstack");
|
||||
if (gridstack !== gsFromElement) throw Error('These should match!');
|
||||
|
||||
gridstack.addWidget("test", 1, 2, 3, 4, true);
|
||||
gridstack.addWidget(document.createElement('div'), 1, 2, 3, 4, true);
|
||||
gridstack.addWidget($(document.createElement('div')), 1, 2, 3, 4, true);
|
||||
gridstack.batchUpdate();
|
||||
gridstack.cellHeight();;
|
||||
gridstack.cellHeight(2);
|
||||
|
||||
Reference in New Issue
Block a user