mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix: add dom-node declarations (#4359)
This commit is contained in:

committed by
Vasil Chimev

parent
f2462158fb
commit
08af2efe0c
22
tns-core-modules/debugger/dom-node.d.ts
vendored
Normal file
22
tns-core-modules/debugger/dom-node.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { ViewBase } from "../ui/core/view";
|
||||||
|
import { CSSComputedStyleProperty } from "./css-agent";
|
||||||
|
export declare function getNodeById(id: number): DOMNode;
|
||||||
|
export declare class DOMNode {
|
||||||
|
nodeId: any;
|
||||||
|
nodeType: any;
|
||||||
|
nodeName: any;
|
||||||
|
localName: any;
|
||||||
|
nodeValue: string;
|
||||||
|
attributes: string[];
|
||||||
|
viewRef: WeakRef<ViewBase>;
|
||||||
|
constructor(view: ViewBase);
|
||||||
|
loadAttributes(): void;
|
||||||
|
readonly children: DOMNode[];
|
||||||
|
onChildAdded(childView: ViewBase): void;
|
||||||
|
onChildRemoved(view: ViewBase): void;
|
||||||
|
attributeModified(name: string, value: any): void;
|
||||||
|
attributeRemoved(name: string): void;
|
||||||
|
getComputedProperties(): CSSComputedStyleProperty[];
|
||||||
|
dispose(): void;
|
||||||
|
toJSON(): string;
|
||||||
|
}
|
Reference in New Issue
Block a user