I have a User Widget that contains another User Widget. The child widget has some buttons that are populated dynamically. I want an event to trigger in the parent Widget when one of the child buttons is clicked, and to pass a variable to it.
Button Clicked in Child Widget > Event and Variable passed to Parent Widget.
Trouble is , I can’t for the life of me figure out how to do this in a way that’s not extremely messy. There doesn’t seem to be a way for the Child User Widget to know about the parent it resides in.
There’s a “get parent” function, but casting from that doesn’t expose user widget types, just the defaults.
I feel like I must be missing something really obvious…