forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.simplePagination-tests.ts
66 lines (52 loc) · 1.07 KB
/
jquery.simplePagination-tests.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/// <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({
onPageClick: (page) => {
}
});
});
$(function () {
$(selector).pagination({
onPageClick: (page, event) => {
}
});
});
$(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);
});