Skip to main content

ElementCreateRangeInput

Callable

  • ElementCreateRangeInput(id, value, min, max, step, thumbIcon, vertical): HTMLInputElement

  • Creates a new range input element in the main document. Does not create a new element if there is already an existing one with the same id


    Parameters

    • id: string

      The id of the input tag to create

    • value: number

      The initial value of the input

    • min: number

      The minimum value of the input

    • max: number

      The maximum value of the input

    • step: number

      The increment size of the input

    • optionalthumbIcon: ThumbIcon

      The icon to use for the range input's "thumb" (handle). If not set, the slider will have a default appearance with no custom thumb.

    • optionalvertical: boolean

      Whether this range input is a vertical slider (defaults to false)

    Returns HTMLInputElement

    • The created HTML input element