DefinitelyTyped/gridstack/gridstack-tests.ts
PascalSenn 3a5e413626 update(Gridstack): update to version 0.2.5 (#9430)
* Update existing function to version 0.2.5

May there are new functions

* Update existing tests to version 0.2.5
2016-05-26 22:45:27 +09:00

21 lines
632 B
TypeScript

/// <reference path="../jquery/jquery.d.ts"/>
/// <reference path="gridstack.d.ts" />
// Type definitions for Gridstack
// Project: http://troolee.github.io/gridstack.js/
// Definitions by: Pascal Senn <https://github.com/PascalSenn/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
var options = <IGridstackOptions> {
float: true
};
var gridstack:GridStack = $(document).gridstack(options);
gridstack.addWidget("test", 1, 2, 3, 4, true);
gridstack.batchUpdate();
gridstack.cellHeight();;
gridstack.cellHeight(2);
gridstack.cellWidth();
gridstack.getCellFromPixel(<MousePosition>{ left:20, top: 20 });