Calling a parent function via a component parameter

Hi all,

I have main component which has several custom button components with several properties. In one of the button’s properties I’d like to define a function in the main component which will be called when pressed. So for example, if I set the button parameter “callFnc” string value to “doSomething” pressing it will call the function doSomething() (with or without values) which is defined in the button parent.

Can anyone help.

Thanks,
Ty