mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed definitions/tests for 'jquery.gridster'.
This commit is contained in:
@@ -16,7 +16,7 @@ var options: GridsterOptions = {
|
||||
}
|
||||
};
|
||||
|
||||
var gridster = <Gridster>$('.gridster ul').gridster(options).data('grister');
|
||||
let gridster: Gridster = $('.gridster ul').gridster(options).data('gridster');
|
||||
gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2, 1);
|
||||
gridster.remove_widget($('gridster li').eq(3).get(0));
|
||||
var json = gridster.serialize<SerializeData>();
|
||||
|
||||
Vendored
+4
@@ -248,3 +248,7 @@ interface Gridster {
|
||||
**/
|
||||
disable(): Gridster;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
data(key: "gridster"): Gridster;
|
||||
}
|
||||
Reference in New Issue
Block a user