UNPKG

@syncfusion/ej2-inputs

Version:

A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.

18 lines (17 loc) 712 B
export declare type CaretPosition = { left: number; top: number; height: number; pos?: number; elemStyle?: CSSStyleDeclaration; }; export declare class CaretPositionHelper { private static properties; private static createStyledDiv; private static createCaretMarker; private static escapeHtml; static getCaretPosition(target: HTMLInputElement | HTMLTextAreaElement): CaretPosition; static adjustScrollToCaretPosition(element: HTMLInputElement | HTMLTextAreaElement): void; static getTextAreaPosition(element: HTMLInputElement | HTMLTextAreaElement): CaretPosition; static insertCharacter(element: HTMLInputElement | HTMLTextAreaElement, text: string): void; }