You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
568 B
17 lines
568 B
2 years ago
|
declare enum selectionSupportType {
|
||
|
'text' = "text",
|
||
|
'search' = "search",
|
||
|
'url' = "url",
|
||
|
'tel' = "tel",
|
||
|
'password' = "password"
|
||
|
}
|
||
|
export declare function hasSelectionSupport(element: Element): element is HTMLTextAreaElement | (HTMLInputElement & {
|
||
|
type: selectionSupportType;
|
||
|
});
|
||
|
export declare function getSelectionRange(element: Element): {
|
||
|
selectionStart: number | null;
|
||
|
selectionEnd: number | null;
|
||
|
};
|
||
|
export declare function setSelectionRange(element: Element, newSelectionStart: number, newSelectionEnd: number): void;
|
||
|
export {};
|