All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.util.Caret.d.ts Maven / Gradle / Ivy

/**
 * Returns the caret (cursor) position of the specified text field (field).
 * Return value range is 0-field.value.length.
 */
declare const getCaretPosition: (field: HTMLInputElement) => number | null;
declare const setCaretPosition: (field: HTMLInputElement, caretPos: number | null) => void;
export { getCaretPosition, setCaretPosition, };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy