PropertyPaneButton click event method in root component

Highlighted
Occasional Contributor

I want to call the method that's in my root component in SPFx for a button click in the property pane. Is this possible?

 

How do I go from .ts file to a method in the .tsx file?

2 Replies
Highlighted
Highlighted

I decided to put the button into the component and then have a toggle switch in the property pane that shows/hides the section with my button.