From ec405640601f44b6ccff802c80a900fc3df205ef Mon Sep 17 00:00:00 2001 From: Steve Fenton Date: Fri, 5 Jul 2013 13:59:47 +0100 Subject: [PATCH] Create basic version of jQuery UI Layout definition. --- jquery.ui.layout/jquery.ui.layout.d.ts | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 jquery.ui.layout/jquery.ui.layout.d.ts diff --git a/jquery.ui.layout/jquery.ui.layout.d.ts b/jquery.ui.layout/jquery.ui.layout.d.ts new file mode 100644 index 0000000000..80e71327c2 --- /dev/null +++ b/jquery.ui.layout/jquery.ui.layout.d.ts @@ -0,0 +1,40 @@ +// Type definitions for jQueryUI 1.9 +// Project: http://layout.jquery-dev.net/ +// Definitions by: Steve Fenton +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +/// + +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?: bool): any; + hide(pane: any): any; + sizePane(pane: any, sizeInPixels: number): any; + resizeContent(pane: any): any; + resizeAll(): any; + + addToggleBtn(selector: string, pane: any) + addCloseBtn(selector: string, pane: any) + addOpenBtn(selector: string, pane: any) + addPinBtn(selector: string, pane: any) + allowOverflow(elemOrPane: any) + resetOverflow(elemOrPane: any) +} + +interface JQuery { + layout(options?: JQueryLayoutOptions): JQueryLayout; +}