Represents a button control that can be used in a Svelte component.
The name of the control
The direction of the control either "Read/Write", "Read Only", or "Write Only"
The type of the control as reported by Q-SYS. One of "Boolean", "Integer", "Float", "Text", "Trigger", or "Time"
The raw control data provided by the QRWC Library. NOTE: Values in the raw control object are not reactive.
$state of the control's value (boolean), set to command the control to change its value.
function to toggle the state of the control.
Represents a button control that can be used in a Svelte component.
Param: ControlName
The name of the control
Param: Direction
The direction of the control either "Read/Write", "Read Only", or "Write Only"
Param: Type
The type of the control as reported by Q-SYS. One of "Boolean", "Integer", "Float", "Text", "Trigger", or "Time"
Param: rawControl
The raw control data provided by the QRWC Library. NOTE: Values in the raw control object are not reactive.
Param: state
$state of the control's value (boolean), set to command the control to change its value.
Param: toggle
function to toggle the state of the control.