Add tests for addWidget

This commit is contained in:
Marius Olbertz
2017-05-24 16:05:34 +02:00
committed by GitHub
parent b8b1b9d1ac
commit 6f9df7ac43

View File

@@ -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);