Logic Machine Forum
dynamic widgets - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: dynamic widgets (/showthread.php?tid=887)



dynamic widgets - Angeles - 04.07.2017

Hi:

I need to do many widgets --- 48 -- and I ask if it would be possible to create one dynamic, that it could get the object where the widget is called and use it to do something.....

Thanks...


RE: dynamic widgets - admin - 04.07.2017

Can you give some more detail, what should the widget do?


RE: dynamic widgets - Angeles - 05.07.2017

ok, I have one object that calls a widget. Is it possible to create a class that recovers that object not its value but its address? Thanks


RE: dynamic widgets - admin - 05.07.2017

You can get the group address mapped to a visualization item like this:
Code:
var object = $('.myclass').data('object')