Use toggle buttons in Custom UI widget
Displays a toggleable button that can be set to either on or off states.
<form>
<inputcombo
type="toggle"
id="enable_device"
label="Enable device"
description="Set the state of the device"
value="true"
/>
</form>
id
: Unique identifier to access this field's data
label
: Header text
description
: Short descriptive text
shape
: Used to align the label and the input field. Its allowed values are
compactVertical
wideVertical
wideHorizontal
value
: Sets either true
or false
as default .