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

SubDevice.removeWidget()

to remove the widget of the subdevice

Syntax

Module.getSubDevice(name).removeWidget(popup)

input sample description
name "MySubDevice" type: string
the subdevice name in the iRidium project
popup popup type: string
the link to the Widget-type popup
output

successful of not


Example:

SubDevice = Module.getSubDevice("MySubDevice");
popup = Module.GetPopup("MyPopup");
widget = SubDevice.addWidget(popup);
SubDevice.removeWidget(widget);