h2oai / h2oai/wave

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

Open
#2,243 1 comment 0 reactions 0 assignees View on GitHub
feature ui
Dominant language
Python
Stars
4.3k
Forks
371
Avg merge
26d 1h
Merged PRs (30d)
1

Description

#### 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.

Contributor guide

Open the contributing guide

Research direction

Start at the ui.tab API and compare it with the button link behavior mentioned in the issue. Check how tab clicks and the current inline window.open workaround are handled; done means a tab can open an external URL without requiring a page rerender.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.