mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
457 B
TypeScript
24 lines
457 B
TypeScript
/// <reference path="../jquery/jquery.d.ts"/>
|
|
/// <reference path="jquery.rowGrid.d.ts"/>
|
|
|
|
/*
|
|
* Test 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"); |