UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

21 lines (20 loc) 649 B
export declare var numberDefinition: RegExp; export interface IMaskedInputResult { value: string; caretPosition: number; cancelPreventDefault?: boolean; } export interface ITextInputParams { prevValue: string; selectionStart: number; selectionEnd: number; insertedChars: string | null; inputDirection?: "forward" | "backward"; } export interface IInputMask { getMaskedValue(src: any): string; getUnmaskedValue(src: string): any; processInput(args: ITextInputParams): IMaskedInputResult; getTextAlignment(): "left" | "right" | "auto"; } export declare function getAvailableMaskTypeChoices(): string[];