Материал из Module developer
Перейти к: навигация, поиск

SubDevice.addWidget()

to add a widget in the subdevice

Syntax

Module.getSubDevice(name).addWidget(popup)

input sample description
name "Driver 1" type: string
the subdevice name in the iRidium project
popup popup type: object
the reference to the Widget-type popup
output
Оbject type: Object
the reference to the widget


Example:

SubDevice = Module.getSubDevice("MySubDevice");
popup = Module.GetPopup("MyPopup");
SubDevice.AddWidget(popup);