UNPKG

@neocomplexx/ngx-neo-directives-mat

Version:
25 lines (24 loc) 724 B
import { ElementRef } from '@angular/core'; export declare class NeoCompositeInputDirective { private el; previousInput: any; nextInput: any; constructor(el: ElementRef); onKeyDown(e: KeyboardEvent): boolean; /** * * Method called on keyup to check if the pressed key is allow, if it is not it stops the event. * If the element reached its maximum length on key pressed it must jump to the next input * @param e */ onKeyUp(e: KeyboardEvent): void; /** * On focus we select the entire value of the input */ onFocus(): void; /** * Method to check if the element is selected * */ private elementIsSelected; }