mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
18 lines
289 B
TypeScript
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);
|