Knockout 3.3 - Components

Added $component and $componentTemplateNodes binding context properties (see http://knockoutjs.com/documentation/binding-context.html).
Added ComponentInfo.templateNodes.
This commit is contained in:
Sergio Morchón Poveda
2015-03-20 13:19:28 +01:00
parent 2e14c22f23
commit effae55ed2
+5 -2
View File
@@ -121,6 +121,8 @@ interface KnockoutBindingContext {
$rawData: any | KnockoutObservable<any>;
$index?: KnockoutObservable<number>;
$parentContext?: KnockoutBindingContext;
$component: any;
$componentTemplateNodes: Node[];
extend(properties: any): any;
createChildContext(dataItemOrAccessor: any, dataItemAlias?: any, extendCallback?: Function): any;
@@ -603,7 +605,8 @@ declare module KnockoutComponentTypes {
}
interface ComponentInfo {
element: any;
element: Node;
templateNodes: Node[];
}
interface TemplateElement {
@@ -641,4 +644,4 @@ declare var ko: KnockoutStatic;
declare module "knockout" {
export = ko;
}
}