Материал из 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");