Skip to content
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

Add option to always open hyperlink in a new browser tab #3242

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

FreddyFunk
Copy link
Contributor

Partially Closes #3129.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

We could also consider adding this as a global option in Style

@emilk emilk added the egui label Aug 12, 2023
@emilk emilk changed the title add option to always open hyperlink in a new browser tab Add option to always open hyperlink in a new browser tab Aug 12, 2023
@emilk emilk merged commit 1023f93 into emilk:master Aug 12, 2023
@ctaggart
Copy link
Contributor

ctaggart commented Feb 5, 2024

Thanks for this! I was looking for how to use it and figured it out:

ui.hyperlink_to(label, url); // opens in same tab
ui.add(Hyperlink::from_label_and_url(label, url).open_in_new_tab(true)); // opens in new tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web Only: add option to open hyperlink in a new browser tab when using via eframe
3 participants