This function takes an object with optional parameters and returns an object with properties and event handlers related to preventing autofill behavior on an HTMLInputElement.

  • Type Parameters

    • T = HTMLInputElement

      The type of the HTMLInputElement.

    Parameters

    • Optionalparams: Partial<IParams<T>>

      An object containing optional parameters.

      • readOnly

        Specifies whether the input element is read-only.

      • onFocus

        Event handler for the "focus" event.

      • onTouchStart

        Event handler for the "touchstart" event.

      • onContextMenu

        Event handler for the "contextmenu" event.

    Returns IResult<T>

    • An object with properties and event handlers related to preventing autofill behavior on an HTMLInputElement.