I want to create a custom widget that can access the front-end model of another widget so that they can share functions and data. For example, given:
c1 = MainWidget() c2 = SubWidget(c1)
How can I handle the c1 argument so that the SubWidget’s front-end model has an attribute like
this.mainwidget that points to the MainWidget’s
Something like this is done in the link widget when they assign two passed models to
this.targetModel, but I can’t figure out how it is done.
Thanks in advance!