forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.ui.layout.d.ts
40 lines (34 loc) · 1.11 KB
/
jquery.ui.layout.d.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
// Type definitions for jQuery UI Layout Plug-in
// Project: http://layout.jquery-dev.net/
// Definitions by: Steve Fenton <https://github.com/Steve-Fenton>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
/// <reference path="../jqueryui/jqueryui.d.ts"/>
interface JQueryLayoutOptions {
north: any;
east: any;
south: any;
west: any;
}
interface JQueryLayout {
panes: any;
options: JQueryLayoutOptions;
state: any;
toggle(pane: any): any;
open(pane: any): any;
close(pane: any): any;
show(pane: any, openPane?: boolean): any;
hide(pane: any): any;
sizePane(pane: any, sizeInPixels: number): any;
resizeContent(pane: any): any;
resizeAll(): any;
addToggleBtn(selector: string, pane: any): any;
addCloseBtn(selector: string, pane: any): any;
addOpenBtn(selector: string, pane: any): any;
addPinBtn(selector: string, pane: any): any;
allowOverflow(elemOrPane: any): any;
resetOverflow(elemOrPane: any): any;
}
interface JQuery {
layout(options?: JQueryLayoutOptions): JQueryLayout;
}