From a9823af18849754870a8933e65cc66a8190abb52 Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Thu, 5 Sep 2013 13:59:42 +0200 Subject: [PATCH 1/5] Added jquery mobile loader options to definition. --- jquerymobile/jquerymobile.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index b4c9298ea1..8dacdbc114 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -274,12 +274,19 @@ interface LoadPageOptions { type?: string; } +interface LoaderOptions { + theme?: string; + textVisible?: boolean; + html?: string; + text?: string; +} + interface JQueryMobile extends JQueryMobileOptions { changePage(to: any, options?: ChangePageOptions): void; initializePage(): void; loadPage(url: any, options?: LoadPageOptions): void; - loading(command: string, options? ): void; + loading(command: string, options?: LoaderOptions): void; base; silentScroll(yPos: number): void; @@ -378,4 +385,4 @@ interface JQuery { interface JQueryStatic { mobile: JQueryMobile; -} +} From b97d1e29f3d1170243fd11595a5fedfec506d501 Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Thu, 5 Sep 2013 14:06:53 +0200 Subject: [PATCH 2/5] Missing textonly option. --- jquerymobile/jquerymobile.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index 8dacdbc114..de51518d8e 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -279,6 +279,7 @@ interface LoaderOptions { textVisible?: boolean; html?: string; text?: string; + textonly?: boolean; } interface JQueryMobile extends JQueryMobileOptions { From e349b79cbd4c2915a18a7e3464be8725deabd6b9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Sep 2013 15:32:03 +0200 Subject: [PATCH 3/5] Added navbar options and method. --- jquerymobile/jquerymobile.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index de51518d8e..40fec050fa 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -282,6 +282,10 @@ interface LoaderOptions { textonly?: boolean; } +interface NavbarOptions { + iconpos: string; +} + interface JQueryMobile extends JQueryMobileOptions { changePage(to: any, options?: ChangePageOptions): void; @@ -316,6 +320,7 @@ interface JQueryMobile extends JQueryMobileOptions { checkboxradio; selectmenu; listview; + navbar(options?: NavbarOptions); } interface JQuerySupport { From 0ee996cb6ad7bca5796579808291b02e5d883bcd Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Sep 2013 15:40:26 +0200 Subject: [PATCH 4/5] Small mistake in previous commit. --- jquerymobile/jquerymobile.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index 40fec050fa..d1be137a5e 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -288,6 +288,8 @@ interface NavbarOptions { interface JQueryMobile extends JQueryMobileOptions { + version: string; + changePage(to: any, options?: ChangePageOptions): void; initializePage(): void; loadPage(url: any, options?: LoadPageOptions): void; @@ -320,7 +322,6 @@ interface JQueryMobile extends JQueryMobileOptions { checkboxradio; selectmenu; listview; - navbar(options?: NavbarOptions); } interface JQuerySupport { @@ -386,6 +387,8 @@ interface JQuery { listview(command: string): JQuery; listview(options: ListViewOptions): JQuery; listview(events: ListViewEvents): JQuery; + + navbar(options?: NavbarOptions): JQuery; } From aa7e4926dcfdda4f8dfd0bb57f13277939002445 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Sep 2013 15:55:45 +0200 Subject: [PATCH 5/5] Moved NavbarOptions next to the other components. Added methods for table. --- jquerymobile/jquerymobile.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index d1be137a5e..956c7a0401 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -186,6 +186,10 @@ interface ListViewEvents { create?: JQueryMobileEvent; } +interface NavbarOptions { + iconpos: string; +} + interface JQueryMobileOptions { activeBtnClass?: string; activePageClass?: string; @@ -282,10 +286,6 @@ interface LoaderOptions { textonly?: boolean; } -interface NavbarOptions { - iconpos: string; -} - interface JQueryMobile extends JQueryMobileOptions { version: string; @@ -389,6 +389,9 @@ interface JQuery { listview(events: ListViewEvents): JQuery; navbar(options?: NavbarOptions): JQuery; + + table(): JQuery; + table(command: string): JQuery; }