interface InputRef {
    blur: (() => void);
    focus: ((options?) => void);
    input: null | HTMLInputElement;
    select: (() => void);
    setSelectionRange: ((start, end, direction?) => void);
}

Properties

blur: (() => void)

Type declaration

    • (): void
    • Returns void

focus: ((options?) => void)

Type declaration

    • (options?): void
    • Parameters

      • Optional options: InputFocusOptions

      Returns void

input: null | HTMLInputElement
select: (() => void)

Type declaration

    • (): void
    • Returns void

setSelectionRange: ((start, end, direction?) => void)

Type declaration

    • (start, end, direction?): void
    • Parameters

      • start: number
      • end: number
      • Optional direction: "none" | "forward" | "backward"

      Returns void

Generated using TypeDoc