Controllers are the main unit of the library. They store an array of Widgets that are to be displayed together on a client.
const device = new Device({ name:"testDevice", actions:[ new HttpAction({ name:"on", method:"GET", base:"http://device.ip/", path:"turnOn" }) ] }) new Controller({ name:"Test Controller", layout:[ new Button({ action:device.getAction("on"), icon:"power-on" }) ] })
An array of Widgets that will be displayed stacked or potentially wrapped on the client
The name of the Controller displayed in the client
Controllers are the main unit of the library. They store an array of Widgets that are to be displayed together on a client.
example
const device = new Device({ name:"testDevice", actions:[ new HttpAction({ name:"on", method:"GET", base:"http://device.ip/", path:"turnOn" }) ] }) new Controller({ name:"Test Controller", layout:[ new Button({ action:device.getAction("on"), icon:"power-on" }) ] })