-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathview-spy.d.ts
More file actions
37 lines (37 loc) · 996 Bytes
/
view-spy.d.ts
File metadata and controls
37 lines (37 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Attribute to be placed on any HTML element in a view to emit the View instance
* to the debug console, giving you insight into the live View instance, including
* all child views, live bindings, behaviors and more.
*/
export declare class ViewSpy {
private logger;
private value;
private view;
/**
* Creates a new instance of ViewSpy.
*/
constructor();
private _log;
/**
* Invoked when the target view is created.
* @param view The target view.
*/
created(view: any): void;
/**
* Invoked when the target view is bound.
* @param bindingContext The target view's binding context.
*/
bind(bindingContext: {}): void;
/**
* Invoked when the target element is attached to the DOM.
*/
attached(): void;
/**
* Invoked when the target element is detached from the DOM.
*/
detached(): void;
/**
* Invoked when the target element is unbound.
*/
unbind(): void;
}