New issue
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
Specify target in href links #1171
Comments
As a workaround, for now, you can add some code to the page to show a warning before state is lost. https://stackoverflow.com/a/1119324/214950 |
Note that if you shift-click you should get the link to open in a new tab. At least, that works in a normal web deployment of Vega. |
TODOs to service this request:
|
Added via updates to vega-view and vega-loader. Once the next Vega version is released, the following will set the default link target within the URL sanitization and loading system: new vega.View(runtimeSpec, {
loader: vega.loader({target: '_blank'})
}); Perhaps vega-embed should also be updated to expose |
Would it be possible to provide a simple example showing how this could be achieved (updating the target) in a jupterlab notebook? |
I don't have the time to make a full example right now but I think you can just pass a dictionary with |
It would be useful to be able to specify the
target
inhref
links within vega plots. One example is plots within the Jupyter notebook, for which a normal<a href="">
changes the window and can lead to a loss of state.It would be nice to let this percolate up to Vega-Lite as well 😄
The text was updated successfully, but these errors were encountered: