mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
jquery.simplePagination: Add method function overloads and tests
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
/// <reference path="jquery.simplePagination.d.ts"/>
|
||||
|
||||
var selector = '#elementId';
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination({
|
||||
items: 100,
|
||||
itemsOnPage: 10,
|
||||
cssStyle: 'light-theme'
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('selectPage', 1);
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('prevPage');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('nextPage');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('getPagesCount');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('getCurrentPage');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('disable');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('enable');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('destroy');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('redraw');
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$(selector).pagination('updateItems', 100);
|
||||
});
|
||||
Reference in New Issue
Block a user