-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow users to set their own handlers for hyperlinks #1152
Comments
I think this could be implemented in another way: If we add a new widget if ui.add(LinKButton::new("Documentation")).clicked() {
…
} It would look the same as |
Yeah that would work better, more composition 😅 |
This looks like a Hyperlink, but doesn't do anything when clicked. Or rather: it lets the user decide what happens on click. Closes #1152
This looks like a Hyperlink, but doesn't do anything when clicked. Or rather: it lets the user decide what happens on click. Closes #1152
Is your feature request related to a problem? Please describe.
I want to be able to handle link opening myself, such that I can use different code for different protocols, and other stuff like being able to open the link in a seperate tab on web, rather than the current tab.
Describe the solution you'd like
This could easily be implemented via just passing a closure to the hyperlink widget.
Describe alternatives you've considered
None?
Additional context
Nothing.
The text was updated successfully, but these errors were encountered: