@tempots/ui

AutoSelect() function

Creates a renderable function that automatically selects the content of an input element after a specified delay.

Signature:

AutoSelect: (delay?: number) => Renderable

Parameters

Parameter

Type

Description

delay

number

(Optional) The delay in milliseconds before selecting the content. Default is 10 milliseconds.

Returns: Renderable

A renderable function that can be used with a DOMContext.