Device select
Example#
Code-example#
<measmatic-card highlight-header>
<measmatic-device-select data-id="control1Id1" filter="ClAsS1" icon="device" label="Switch"></measmatic-device-select>
<measmatic-device-select data-id="control1Id2" filter="ClAsS1" label="Switch"></measmatic-device-select>
<measmatic-device-select data-id="control1Id3" filter="ClAsS1" icon="device-alternative"></measmatic-device-select>
<measmatic-device-select data-id="control1Id4"></measmatic-device-select>
</measmatic-card>
Description#
This custom-element creates a control to select devices which were set in the Device Manager
under Test site configuration
.
Usage#
Attributes#
Necessary#
<measmatic-device-select data-id='control1Id'>
Optional#
<measmatic-device-select data-id='control1Id' filter='Switch'>
filter='Switch'
you can filter the selectable devices.
<measmatic-device-select data-id='control1Id' label='Switch'>
label='Switches'
.
<measmatic-device-select data-id='control1Id' icon='world'>
Properties of interest
device
gets name of the selected deviceguid
gets guid of the selected devicedeviceObject
gets/sets Object containingname
andguid
of selected device