Skip to content

Input variable

Example#

preview

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

  • variable gets/sets an Object with properties of the selected variable variableName, variableGuid, testGuid or returns null when variables are disabled
  • enabled get/set status of the element
  • disabled get/set if the variables button is disabled, the attribute disabled can be added or removed at any time
  • toggleDropdown() toggles dropdown
  • openDropdown() opens dropdown when enabled is true
  • closeDropdown() closes dropdown

  • parent variable containing parent measmatic-input

  • inputField variable containing inputField connected to this element
  • inputUnit variable containing inputUnit