Linking OnClicked button (UserWidget) with a c++ function (ActorComponent)

I have an ActorComponent c++ class, one of it’s variables is an UserWidget (also another c++ class).
I can easily access the Widget’s variables from withing the ActorComponent (f.e. to change some text: Widget->Text->SetText(“whatever”);
What I want to do now is:
When I click one of the Widget’s Buttons, I want to make a call to one of the ActorComponent’s functions.
Is this possible?
Thanks in advance.

You could use delegates to achieve this.
Delegates

In your widget you can create a delegate per function you need to call. In each click event fire off the related delegate.
After you have an instance of your widget in the ActorComp you can bind to each delegate to a local function.