Class ZetaSliderInputField

An input field using a Zeta Slider

ZetaSliderEvent:zeta-slider-change - Fired whenever value of slider is changed. Contains a single entry in detail: value:number.

Hierarchy

  • FormFieldInterface<this> & LitElement<this> & ContourableInterface<this>
    • ZetaSliderInputField

Other

  • Returns ZetaSliderInputField

checked?: boolean
disabled: boolean

Disables the input field.

error: boolean = false

Error state.

hiddenInput: HTMLInputElement
id: string = "hidden-slider-input"

Returns the value of element's id content attribute. Can be set to change it.

MDN Reference

indeterminate: boolean
initialValue: number = 50

The value of the input field.

input: HTMLInputElement
internals: ElementInternals
label?: string

The label displayed above the input.

max: number = 100

The maximum value of the slider input field.

min: number = 0

The minimum value of the slider input field.

name: string

The name given to the input field.

required: boolean
rounded: boolean
stepIncrement?: number

If set, will put steps on the slider at the given increments and the slider will snap to the nearest step.

type: InputType = "slider"
value: string
styles: CSSResultGroup[] = ...

rendering

  • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

    Returns TemplateResult<1>

updates

  • Invoked when the element is first updated. Implement to perform one time work on the element after update.

    firstUpdated() {
    this.renderRoot.getElementById('my-text-area').focus();
    }

    Setting properties inside this method will trigger the element to update again after this update cycle completes.

    Returns void