123
作者:互联网
envtemperature.js
var envtemperature = StudioWidgetWrapper.extend({
/*
* Triggered when initializing a widget and will have the code that invokes rendering of the widget
*/
init: function () {
var thisObj = this;
thisObj._super.apply(thisObj, arguments);
thisObj.render();
if ((typeof (Studio) != “undefined”) && Studio) {
//切换设备发出的事件
//Studio.registerEvents(thisObj, "changeCurrentDevice", "Change Current Device", []);
//接受点击某个设备事件
//Studio.registerAction(thisObj, "clickMarkerAction", "Click Marker Action", [], $.proxy(thisObj.clickMarkerActionCbk, thisObj), []);
// Studio.registerEvents(thisObj, "clearDeviceIconById", "clearDeviceById", []); //{overlaysIds[]}
//Studio.registerEvents(thisObj, "addDeviceIconById", "addDeviceIconById", []); //{overlaysIds[]}
//Studio.registerEvents(thisObj,
标签:widget,thisObj,envtemperature,registerEvents,123,Studio,var 来源: https://blog.csdn.net/weixin_37343255/article/details/99105268