@instalator:
как можно из виджета (js) получить переменные из настроек драйвера? `
[{"tpl":"tplHtml","data":{"visibility-cond":"==","visibility-val":1,"refreshInterval":"0","gestures-offsetX":0,"gestures-offsetY":0,"signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"html":"\n \n\n"},"style":{"left":"168px","top":"263px","width":"814px","height":"335px"},"widgetSet":"basic"}]
То есть:
vis.conn.getObject('system.adapter.admin.0', function (err, obj) {
$('.my-super-class').html(JSON.stringify(obj, null, 2));
});
А ты не хочешь сделать это настраиваемым?