Материал из Module developer
Перейти к: навигация, поиск
  // Refer to the wiget Setup
  var setup = IR.GetItem("Setup" + moduleID);
  // Add the Setup in the subdevice 
 	var widget = settingPopup.addWidget(setup);
  // Refer to the popup of Adding subdevices 
  var addDevice = IR.GetItem(addDeviceName);
  // Refer to the popup of Adding dimmers
  var addDimmer = IR.GetItem(addDimmerName);
  // Refer to the List item on the popup of free channels 
  var list = listFreeChannel.GetItem("listAddchannel");
  // Set up the template of items of the free channels list 
  list.Template = 'Channel' + moduleID;
  // Refer to the popup Error 
  var messageError = IR.GetItem(error);
  // Refer to the List item on the popup Adding subdevices 
  var listDevice = addDevice.GetItem("listAddDevice"); 
  // Set up the template of items of the Adding subdevices list 
  listDevice.Template = 'Device_template' + moduleID;
  // Call required variables 
  var idSub;          // The variable for referring to the subdevice  
  var tName;           // The variable for comparing forbidden symbols
  var duplicateName;  // The variable for comparing coinciding names