Input unit
Example#
Code-example#
<measmatic-input-unit data-id="controlId1"></measmatic-input-unit>
<measmatic-input-unit data-id="controlId2" unit="V"></measmatic-input-unit>
<measmatic-input-unit data-id="controlId2" unit="V" start-prefix="" end-prefix=""></measmatic-input-unit>
<measmatic-input-unit data-id="controlId3" unit="V" start-prefix="k"></measmatic-input-unit>
<measmatic-input-unit data-id="controlId4" unit="V" end-prefix="p"></measmatic-input-unit>
<measmatic-input-unit data-id="controlId5" unit="V" start-prefix="M" end-prefix="p"></measmatic-input-unit>
<measmatic-input-unit data-id="controlId6" unit="V" start-prefix="M" end-prefix="p" selected-prefix="k"></measmatic-input-unit>
Measmatic-input-unit#
This element will generate a select-element to select a unit. Predefinded prefixes going from high to low: 'Y','Z','E','P',"T","G","M","k","","m","ยต","n","p","f","a","z","y". "" will use no prefix and presents the baseunit.
Attributes
data-id
required to initialize your control with measmaticunit
sets the baseunitstart-prefix
selects the largest choosable prefixend-prefix
selects the smallest choosable prefixselected-prefix
selected-prefix="" will select base (no prefix)
Setter/Getter
unit
sets/gets baseunit of elementselectedPrefix
sets/gets selected prefix of unitstartPrefix
sets/gets smallest prefix of unitendPrefix
sets/gets largest prefix of unitdisabled
sets/gets element disabled