Ext Ajax, Component and DataView.

This commit is contained in:
Qube
2013-09-01 14:44:15 +10:00
parent 291d5f5644
commit 73c3b95565
+51
View File
@@ -401,18 +401,69 @@ declare module Siesta {
* @mixin
*/
interface IExtJSAjax {
ajaxRequestAndThen(url: string, callback: Function, scope: any): void;
isAjaxLoading(object?: any, description?: string): void;
waitForAjaxRequest(callback: Function, scope: any, timeout: number): void;
waitForAjaxRequest(object: any, callback: Function, scope: any, timeout: number): void;
}
/**
* @mixin
*/
interface IExtJSComponent {
destroysOk(components: any[], description?: string): void;
destroysOk(components: string, description?: string): void;
destroysOk(components: any, description?: string): void;
hasPosition(component: string, x: number, y: number, description?: string): void;
hasPosition(component: any, x: number, y: number, description?: string): void;
hasSize(component: string, width: number, height: number, description?: string): void;
hasSize(component: any, width: number, height: number, description?: string): void;
waitForCQ(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForCQNotFound(query: string, callback: Function, scope: any, timeout: number): void;
waitForCQNotVisible(query: string, callback: Function, scope: any, timeout: number): void;
waitForCQVisible(query: string, callback: Function, scope: any, timeout: number): void;
waitForComponent(component: string, rendered: boolean, callback: Function, scope: any, timeout: number): void;
waitForComponentNotVisible(component: string, callback: Function, scope: any, timeout: number): void;
waitForComponentNotVisible(component: any, callback: Function, scope: any, timeout: number): void;
waitForComponentQuery(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForComponentQueryNotFound(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForComponentQueryNotVisible(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForComponentQueryVisible(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForComponentVisible(component: string, callback: Function, scope: any, timeout: number): void;
waitForComponentVisible(component: any, callback: Function, scope: any, timeout: number): void;
waitForCompositeQuery(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForCompositeQueryNotFound(query: string, root: any, callback: Function, scope: any, timeout: number): void;
waitForXType(xtype: string, callback: Function, scope: any, timeout: number): void;
waitForXType(xtype: string, root: any, callback: Function, scope: any, timeout: number): void;
}
/**
* @mixin
*/
interface IExtJSDataView {
getFirstItem(view: string): any;
getFirstItem(view: any): any;
waitForViewRendered(view: string, callback: Function, scope: any, timeout: number): void;
waitForViewRendered(view: any, callback: Function, scope: any, timeout: number): void;
}
/**