mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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);
|