##// END OF EJS Templates
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made...
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made compatibility stubs with @deprected comments * Improved handling of functional component output, added support for boolean, null, undefined and widgets. * RenditionBase: fixed startup for the DocumentFragment nodes * startupWidgets: fixed startup of the widget when passed domNode of the widget. * DjxFragment converted to the functional component

File last commit:

r2:8ec37bf1b4d1 default
r63:1a0018655d1c v1.1.0 default
Show More
window.d.ts
83 lines | 2.9 KiB | video/mp2t | TypeScriptLexer
import { GenericFunction, GenericObject } from "../interfaces";
interface DojoWindow {
/**
* Alias for the current window. 'global' can be modified
* for temporary context shifting. See also withGlobal().
*/
global: any;
/**
* Alias for the current document. 'doc' can be modified
* for temporary context shifting. See also withDoc().
*/
doc: Document;
/**
* Return the body element of the specified document or of dojo/_base/window::doc.
*/
body(doc?: Document): HTMLBodyElement;
/**
* changes the behavior of many core Dojo functions that deal with
* namespace and DOM lookup, changing them to work in a new global
* context (e.g., an iframe). The varibles dojo.global and dojo.doc
* are modified as a result of calling this function and the result of
* `dojo.body()` likewise differs.
*/
setContext(globalObject: GenericObject, globalDocument: Document): void;
/**
* Invoke callback with globalObject as dojo.global and
* globalObject.document as dojo.doc.
*/
withGlobal<T>(globalObject: GenericObject, callback: GenericFunction<T>, thisObject?: Object, cbArguments?: any[]): T;
/**
* Invoke callback with documentObject as dojo/_base/window::doc.
*/
withDoc<T>(documentObject: Document, callback: GenericFunction<T>, thisObject?: Object, cbArguments?: any[]): T;
}
declare module "./kernel" {
interface Dojo {
/**
* Alias for the current window. 'global' can be modified
* for temporary context shifting. See also withGlobal().
*/
global: any;
/**
* Alias for the current document. 'doc' can be modified
* for temporary context shifting. See also withDoc().
*/
doc: Document;
/**
* Return the body element of the specified document or of dojo/_base/window::doc.
*/
body(doc?: Document): HTMLBodyElement;
/**
* changes the behavior of many core Dojo functions that deal with
* namespace and DOM lookup, changing them to work in a new global
* context (e.g., an iframe). The varibles dojo.global and dojo.doc
* are modified as a result of calling this function and the result of
* `dojo.body()` likewise differs.
*/
setContext(globalObject: GenericObject, globalDocument: Document): void;
/**
* Invoke callback with globalObject as dojo.global and
* globalObject.document as dojo.doc.
*/
withGlobal<T>(globalObject: GenericObject, callback: GenericFunction<T>, thisObject?: Object, cbArguments?: any[]): T;
/**
* Invoke callback with documentObject as dojo/_base/window::doc.
*/
withDoc<T>(documentObject: Document, callback: GenericFunction<T>, thisObject?: Object, cbArguments?: any[]): T;
}
}
declare const dojoWindow: DojoWindow;
export = dojoWindow;