A class designed to standardize the behavior for a hue selector UI component.

Hierarchy (view full)

Properties

_primaryInput: HTMLElement

The primary input (if any). Used to determine what element should receive focus when an associated label is clicked on.

_value: number

The underlying value of the element.

_internals: ElementInternals

Attached ElementInternals which provides form handling functionality.

#input: HTMLInputElement

The color range associated with this element.

tagName: string = "hue-slider"
formAssociated: boolean = true

Declare that this custom element provides form element functionality.

Accessors

  • get form(): HTMLFormElement
  • The form this element belongs to.

    Returns HTMLFormElement

  • get name(): string
  • The input element name.

    Returns string

  • get disabled(): boolean
  • Is this element disabled?

    Returns boolean

  • get editable(): boolean
  • Is this field editable? The field can be neither disabled nor readonly.

    Returns boolean

Methods

  • Internal

    Apply key attributes on the containing custom HTML element to input elements contained within it.

    Parameters

    • input: any

    Returns void

  • Protected

    Return the value of the input element which should be submitted to the form.

    Returns number

  • Protected

    Special handling when the custom element is clicked. This should be implemented to transfer focus to an appropriate internal element.

    Parameters

    • event: PointerEvent

    Returns void

  • Update the thumb and the value.

    Parameters

    • event: FormDataEvent

    Returns void