mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added Gridstack definition file and test
This commit is contained in:
@@ -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 });
|
||||
Reference in New Issue
Block a user