UNPKG

891 BTypeScriptView Raw
1import { ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core';
2import { NodeEditableEvent } from './editable.events';
3import * as i0 from "@angular/core";
4export declare class NodeEditableDirective implements OnInit {
5 private renderer;
6 private elementRef;
7 nodeValue: string;
8 valueChanged: EventEmitter<NodeEditableEvent>;
9 constructor(renderer: Renderer2, elementRef: ElementRef);
10 ngOnInit(): void;
11 applyNewValue(newNodeValue: string): void;
12 applyNewValueByLoosingFocus(newNodeValue: string): void;
13 cancelEditing(): void;
14 static ɵfac: i0.ɵɵFactoryDeclaration<NodeEditableDirective, never>;
15 static ɵdir: i0.ɵɵDirectiveDeclaration<NodeEditableDirective, "[nodeEditable]", never, { "nodeValue": { "alias": "nodeEditable"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, false, never>;
16}