Vector4Input

A custom HTML element that represents a vector input with four numeric values (x, y, z, w) and allows for event handling when the values are changed.

Constructor

new Vector4Input(labelVector, step, value, labelsopt)

A custom element with four input fields for x, y, z and w values, and dispatches a 'change' event when any of the input values are changed.

Parameters:
NameTypeAttributesDescription
labelVectorstring

A string that represents the label for the vector input.

stepnumber

A number that specifies the increment or decrement value for the input fields.

valuenumber

The initial value that will be set for all four input fields (x, y, z and w).

labelsArray.<string><optional>

An optional array that contains the labels for the input fields. By default, it is set to ['x', 'y', 'z', 'w'].

Classes

Vector4Input

Members

inputElements

The function returns an array of input elements.