2

I have a iframe control imported from 'react-iframe'.We are showing a chatbot(PowerVirtualAgent) inside an iframe

.

I want to have a minimize button and open button functionalities over the iframe control.I could not find any properties for these functionalitites in iframe control.

Could anyone help ASAP. Below is the snapshot of iframe.

enter image description here

1 Answer 1

1

I believe 'React Iframe' component does not have such a property or event handler that could hide/open the iframe panel. I suggest you wrap this iframe component and a button within a container, use state to control its visibility.

You may take a reference of below spfx extension samples:

enter image description here

BR

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.