DefinitelyTyped/types/jquery.pin/jquery.pin-tests.ts
2018-03-23 22:13:48 -04:00

18 lines
289 B
TypeScript

import { Options } from "jquery.pin";
// basic usage
$(".pinned").pin();
// with options
const options: Options = {
activeClass: 'active',
minWidth: 940,
containerSelector: '.container',
padding: {
top: 10,
bottom: 10
}
};
$(".pinned").pin(options);