Материал из Module developer
SubDevice.getWidget()
to get a widgent of the subdevice
Syntax
Module.getSubDevice(SubDeviceName).getWidget(WidgetName)
| input | sample | description |
| SubDeviceName | "MySubDevice" | type: string the subdevice name in the iRidium project |
| WidgetName | "MyWidget" | type: string the widget name |
| output |
| Оbject | type: Object the reference to the widget |
Example:
SubDevice = Module.getSubDevice("MySubDevice"); widget = SubDevice.getWidget("MyWidget");
