mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added test file
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
/// <reference path="jquery.rowGrid.d.ts"/>
|
||||
|
||||
/*
|
||||
* Testing different options
|
||||
*/
|
||||
|
||||
var options = {
|
||||
minMargin: 10,
|
||||
maxMargin: 35,
|
||||
itemSelector: ".item"
|
||||
};
|
||||
|
||||
$(".container").rowGrid(options);
|
||||
|
||||
|
||||
/*
|
||||
* Test endless scrolling
|
||||
*/
|
||||
|
||||
// append new items
|
||||
$(".container").append("<div class='item'><img src='http://placehold.it/310x200' /></div>");
|
||||
// arrange appended items
|
||||
$(".container").rowGrid("appended");
|
||||
Reference in New Issue
Block a user