A Widget that holds an Action and a DynamicValue, and when pressed on the client the action is run, and is highlighted based on the value of the DynamicValue
new ToggleButton({icon:"power-on",action: new HttpAction({ name:"on", method:"GET", base:"https://device.ip", path:"turnOn" }), state:new ParsedValue(new TextValue("true")) }) //JSX <ToggleButton icon="power-on" state={new ParsedValue(new TextValue("true"))} action={new HttpAction({ name:"on", method:"GET", base:"https://device.ip", path:"turnOn" })}/>
A Widget that holds an Action and a DynamicValue, and when pressed on the client the action is run, and is highlighted based on the value of the DynamicValue
example
new ToggleButton({icon:"power-on",action: new HttpAction({ name:"on", method:"GET", base:"https://device.ip", path:"turnOn" }), state:new ParsedValue(new TextValue("true")) }) //JSX <ToggleButton icon="power-on" state={new ParsedValue(new TextValue("true"))} action={new HttpAction({ name:"on", method:"GET", base:"https://device.ip", path:"turnOn" })}/>