UNPKG

ngx-input-eip

Version:

Lightweight edit in place text editor.

38 lines (37 loc) 1.27 kB
import { TemplateRef } from "@angular/core"; import { AbstractControl, ValidatorFn } from "@angular/forms"; export interface InputSettings { isShort: boolean; isMandatory: boolean; enableValidations: boolean; placeholder: string; label: string; showLabel: boolean; autosave: boolean | null; classes: string; customValidators: ValidatorFn[]; isDisabled: boolean; numbersOnly: boolean; min?: number; max?: number; maxLength?: number; minLength?: number; submitButtonLabel: string; cancelButtonLabel: string; actionbarMode: ActionBarMode | null; animateActionbar: boolean; allowInvalid: boolean; errorsParser?: (c: AbstractControl) => (string | TemplateRef<any>)[]; showErrors: boolean; customErrorMessages?: (string | TemplateRef<any>)[]; customErrorsMap?: { [key: string]: ((e?: any) => string | TemplateRef<any>) | string | TemplateRef<any>; }; inputStyle?: { [key: string]: string; }; selectOnFocus?: boolean; } export type ActionBarMode = 'always' | // Show the actionbar immediately, always take space. Default option if [isShort]="false". 'show' | // Resize the actionbar to show the buttons. If no changes, does not take space. 'overlay';