Added Gridstack definition file and test

This commit is contained in:
Pascal Senn (GIAPSE)
2015-09-15 14:57:21 +02:00
parent a461a243e2
commit e24b322713
2 changed files with 257 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// Type definitions for Gridstack
// Project: http://troolee.github.io/gridstack.js/
// Definitions by: Pascal Senn <https://github.com/PascalSenn/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
var options = <IGridstackOptions> {
float: true;
};
var gridstack:GridStack = $(document).gridstack(options);
gridstack.add_widget("test", 1, 2, 3, 4, true);
gridstack.batch_update();
gridstack.cell_height();;
gridstack.cell_height(2);
gridstack.cell_width();
gridstack.get_cell_from_pixel(<MousePosition>{ left:20, top: 20 });