angular4-json-schema-form-updated
Version:
Angular JSON Schema Form builder
25 lines (24 loc) • 1.02 kB
TypeScript
import { ElementRef, AfterViewChecked } from "@angular/core";
import { AfterViewInit } from "@angular/core";
export declare class FloatLabelDirective implements AfterViewInit, AfterViewChecked {
private elementRef;
private document;
element: any;
hasFocus: boolean;
hasFloat: boolean;
addLabel: boolean;
labelClass: string;
constructor(elementRef: ElementRef, document: any);
ngAfterViewInit(): void;
ngAfterViewChecked(): void;
appendLabel(element: HTMLInputElement, count?: number): void;
onFocus(event: any): void;
onBlur(event: any): void;
toggleClass(isFocused: boolean, element: any, isInitialize?: boolean): void;
checkValue(element: any): boolean;
addFloatByDefault(element: any): boolean;
getClosest(elem: any, selector: any): HTMLElement;
focusSelectedParent(element: HTMLElement, isFocused: boolean): void;
showErrorBlock(parent: HTMLElement, focused: boolean): void;
isString(value: any): boolean;
}