Interface ButtonControl

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.

interface ButtonControl {
    ControlName: string;
    Direction: ControlDirection;
    rawControl: undefined | Control;
    state: boolean;
    toggle: () => void;
    Type: ControlType;
}

Hierarchy (View Summary)

Properties

ControlName: string
Direction: ControlDirection
rawControl: undefined | Control
state: boolean
toggle: () => void