h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

Add link to `ui.tab` to direct user to external URL when clicked on #2243

Open nipunchamikara opened 5 months ago

nipunchamikara commented 5 months ago

Is your feature request related to a problem? Please describe

I have a bunch of tabs which I use for navigation. I want the last one to link to documentation which is an external URL. However, I don't see a way to open an external URL using a tab.

Describe the solution you'd like

Ideally, the ability to specify an external URL in the tab, maybe a property called link just like a button.

Describe alternatives you've considered

For now, external URLs were opened by setting inline script to f'window.open("{external_url}");'. However, this is not ideal since the page has to be re-rendered. Do mention if there are any more elegant solutions to this.