We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This sentence isn't clear to me - "To close the window programatically give the window a ref and use the closeWindow function."
can you share a simple example or usage? or refer to an example in the docs?
The text was updated successfully, but these errors were encountered:
Hello,
try it like this:
<Popout url='popout.html' title='Window title' onClosing={this.popupClosed} ref={popup => this.popup = popup} > <div>Popped out content!</div> </Popout>
And then once you need to close it call it like this: this.popup.closeWindow();
this.popup.closeWindow();
Hope it helps
Sorry, something went wrong.
I am using this in a functional component, and this is not working. I am getting 'Cannot read property 'closeWindow' of undefined'
let popupRef; ... <PopoutWindow url={/saml/login?socketId=${id}} title="Login" ref={(popup) => popupRef = popup} onClosing={closePopup} /> ... popupRef.closeWindow();
let popupRef;
...
<PopoutWindow
url={
}
title="Login"
ref={(popup) => popupRef = popup}
onClosing={closePopup}
/>
popupRef.closeWindow();
I have reimplemented the react-popout with IE support and more flexible
https://www.npmjs.com/package/react-popout-v2
No branches or pull requests
This sentence isn't clear to me -
"To close the window programatically give the window a ref and use the closeWindow function."
can you share a simple example or usage? or refer to an example in the docs?
The text was updated successfully, but these errors were encountered: