Input variable
Example#
Code-example#
<!doctype html><body>
<measmatic-card>
<measmatic-input data-id=1 variables value=12></measmatic-input>
<measmatic-input data-id=2 selected-prefix=m variables unit=V start-prefix=P end-prefix=n value=12></measmatic-input>
<measmatic-input data-id=3 variables unit=V start-prefix end-prefix value=12 type=number></measmatic-input>
<measmatic-input data-id=4 selected-prefix=m variables unit=V start-prefix=P end-prefix=n value=12 type=text></measmatic-input>
<measmatic-input data-id=5 value="variables=unset" type=text></measmatic-input>
<measmatic-input data-id=6 variables=true value="variables=true" type=text></measmatic-input>
<measmatic-input data-id=7 variables=false value="variables=false" type=text></measmatic-input>
<measmatic-input data-id=8 selected-prefix=m variables unit=V start-prefix=P end-prefix=n value=12 type=checkbox></measmatic-input>
<measmatic-input data-id=9 selected-prefix=m variables unit=V start-prefix=P end-prefix=n value=12 disabled></measmatic-input>
</measmatic-card>
</body></html>
Measmatic-input-variable#
This element is used by measmatic-input and provides the functionality to choose from variables given by other tests.#
Properties of interest
variablegets/sets an Object with properties of the selected variablevariableName,variableGuid,testGuidor returnsnullwhen variables are disabledenabledget/set status of the elementdisabledget/set if the variables button is disabled, the attributedisabledcan be added or removed at any timetoggleDropdown()toggles dropdownopenDropdown()opens dropdown whenenabledistrue-
closeDropdown()closes dropdown -
parentvariable containing parent measmatic-input inputFieldvariable containing inputField connected to this elementinputUnitvariable containing inputUnit