Skip to content

Commit 40d9e7b

Browse files
committed
Initial definitions for 2 new jquery plugins.
1 parent e45cc5a commit 40d9e7b

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Type definitions for jQuery contextMenu 1.5.25
2+
// Project: http://medialize.github.com/jQuery-contextMenu/
3+
// Definitions by: Natan Vivo <https://github.com/nvivo/>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
/// <reference path="../jquery/jquery-1.9.d.ts" />
7+
8+
interface JQueryContextMenuOptions {
9+
selector: string;
10+
appendTo?: string;
11+
trigger?: string;
12+
autoHide?: bool;
13+
delay?: number;
14+
determinePosition?: (menu) => void;
15+
position?: (opt, x, y) => void;
16+
positionSubmenu?: (menu) => void;
17+
zIndex?: number;
18+
animation?: {
19+
duration?: number;
20+
show?: string;
21+
hide?: string;
22+
};
23+
events?: {
24+
show?: () => void;
25+
hide?: () => void;
26+
};
27+
callback?: (...args: any[]) => any;
28+
items: any;
29+
};
30+
31+
interface JQueryStatic {
32+
contextMenu(options?: JQueryContextMenuOptions): JQuery;
33+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Type definitions for jQuery simplePagination.js v1.4
2+
// Project: https://github.com/flaviusmatis/simplePagination.js
3+
// Definitions by: Natan Vivo <https://github.com/nvivo/>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
/// <reference path="../jquery/jquery-1.9.d.ts" />
7+
8+
interface SimplePaginationOptions {
9+
items?: number;
10+
itemsOnPage?: number;
11+
pages?: number;
12+
displayedPages?: number;
13+
edges?: number;
14+
currentPage?: number;
15+
hrefTextPrefix?: string;
16+
hrefTextSuffix?: string;
17+
prevText?: string;
18+
nextText?: string;
19+
cssStyle?: string;
20+
selectOnClick?: bool;
21+
onPageClick?: (interger) => void;
22+
onInit?: () => void;
23+
};
24+
25+
interface JQuery {
26+
pagination(options?: SimplePaginationOptions): JQuery;
27+
}

0 commit comments

Comments
 (0)