Added WinJS.Binding.Template class

I did not add the unusual function `render.value(...)` as I didn't know how to represent that cleanly in TypeScript.
This commit is contained in:
Aaron
2013-10-02 08:41:56 -05:00
parent f898e01954
commit 856043d464

16
winjs/winjs.d.ts vendored
View File

@@ -18,7 +18,7 @@ declare module WinJS {
module Binding {
function as(data: any): any;
class List {
constructor(data: any[]);
constructor(data?: any[]);
public push(item: any): any;
public indexOf(item: any): number;
public splice(start: number, howMany?: number, item?: any[]): any[];
@@ -47,6 +47,20 @@ declare module WinJS {
public notifyMutated(index: number);
}
class Template {
public element: HTMLElement;
public extractChild: boolean;
public processTimeout: number;
public debugBreakOnRender: boolean;
public disableOptimizedProcessing: boolean;
public isDeclarativeControlContainer: boolean;
public bindingInitializer: any;
constructor(element: HTMLElement, options?: any);
public render(dataContext: any, container?: HTMLElement): WinJS.Promise<any>;
public renderItem(item: any, recycled?: HTMLElement);
}
}
module Namespace {
var define: any;