UNPKG

gentics-ui-core

Version:

This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.

22 lines (21 loc) 1.13 kB
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; /** * Handles autofocus for all ui-core form elements. */ export declare class AutofocusDirective implements AfterViewInit, OnChanges, OnDestroy { private element; get autofocus(): boolean; set autofocus(value: boolean); private _autofocus; private inputElement; private timeout; constructor(element: ElementRef); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private focusNativeInput; private cleanupTimer; static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, " gtx-button[autofocus], gtx-checkbox[autofocus], gtx-date-time-picker[autofocus], gtx-file-picker[autofocus], gtx-input[autofocus], gtx-radio-button[autofocus], gtx-search-bar[autofocus], gtx-select[autofocus], gtx-textarea[autofocus]", never, { "autofocus": "autofocus"; }, {}, never>; }