assign function to button dynamicly

Hello I have
Button Clicked={function_name}
and function_name is Observable, not direct to one function name, so I can set its value to another function to Button on run time when clicked

but I don’t know how.
help me if it is possible.

I self done this by using magic : eval

var fn=“closeMe”;


I can call function closeMe and openMe just by their string name
very useful, very dynamic if you want to call a function just by its name