Input variable
Example#
Code-example#
<!DOCTYPE html>
<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-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
variableget/set an Object with properties of the selected variablevariableName,variableGuid,testGuidenabledget/set status of the elementtoggleDropdown()toggles dropdownopenDropdown()opens dropdown-
closeDropdown()closes dropdown -
parentvariable containing parent measmatic-input inputFieldvariable containing inputField connected to this elementinputUnitvariable containing inputUnit