You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.
I would like to open up a new window if for example a certain link or button is clicked. The new window should render a template for example. Is this possible?
I tried to implement it manually but unfortunately did not succeed.
thanks in advance
The text was updated successfully, but these errors were encountered:
Rendering custom templates is a Routing thing, it has nothing to do with PyFladesk. In the following code will just open new windows when opening external links but this windows will be a system default browser.
In case you want to open a new window for an internal link you should think how to do it.
The objective is to keep the code as clean as possible so there are no plans for multiple windows support.
In case you want to add this feature I suggest:
Create a pattern or a way to identify which links should be open in a new window (you could just change something in the domain name, although it seems hacky)
Add the code in the init.py to handle such behaviour, you should work on the acceptNavigationRequest method
I would like to open up a new window if for example a certain link or button is clicked. The new window should render a template for example. Is this possible?
I tried to implement it manually but unfortunately did not succeed.
thanks in advance
The text was updated successfully, but these errors were encountered: