UNPKG

ng2-tree

Version:

angular2 component for visualizing data that can be naturally represented as a tree

17 lines (16 loc) 891 B
import { ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core'; import { NodeEditableEvent } from './editable.events'; import * as i0 from "@angular/core"; export declare class NodeEditableDirective implements OnInit { private renderer; private elementRef; nodeValue: string; valueChanged: EventEmitter<NodeEditableEvent>; constructor(renderer: Renderer2, elementRef: ElementRef); ngOnInit(): void; applyNewValue(newNodeValue: string): void; applyNewValueByLoosingFocus(newNodeValue: string): void; cancelEditing(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NodeEditableDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NodeEditableDirective, "[nodeEditable]", never, { "nodeValue": { "alias": "nodeEditable"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, false, never>; }