I'm trying to build a radio button group that will throw the custom "change: activeOption" event, when the user selects some option. I have a root class called radioGroup and some child elements radio, label etc..
I stucked, because I have the "radio.onTap ->" event that emits the custom event "change: activeOption", which in turn refers to the class root container property "activeOption". I refer to that property through "this.activeOption" ("this" here means the root container of the class). But being placed within the "radio.onTap ->" construction "this" is referencing to the "radio" itself.
How can I refer to the root container of the class through "this" keyword in another event (radio.onTap ->), which refers to the child element of the class? Or maybe there is another way of doing it?
Framer code is attached (issue line is commented within radio.onTap ->).
Thanks in advance!?