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

IR.EVENT_ADD_WIDGET

Adding a widget

Синтаксис

module.AddListener(IR.EVENT_ADD_WIDGET, 0, function, [pointer]);

Название Пример Описание
function function(in_widget) type: function
unnamed function or a reference to a function
  • The coming parameter to a function is an added widget
pointer type: object
pointer to an object that services a function (optional)
На выходе

-


Пример

module.AddListener(IR.EVENT_ADD_WIDGET, 0, function (in_widget)
{
    IR.Log(in_widget.Name); 
});