How do I pass the action into a component? and how to assign that action to certain widgets in the component?

like i have one custom dialog in which one button i want to pass action to that button
can anyone give me suggestion how can i approach this?

2 replies