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

Automatically Change Tabs #349

Closed
mtanco opened this issue Dec 3, 2020 · 2 comments · Fixed by #1540
Closed

Automatically Change Tabs #349

mtanco opened this issue Dec 3, 2020 · 2 comments · Fixed by #1540
Assignees
Labels
bug Bug in code ui Related to UI

Comments

@mtanco
Copy link
Contributor

mtanco commented Dec 3, 2020

I can imagine an app with tabs where there's a button on one of the tabs (like a form to submit information) and when you click it to save everything it automatically takes you to the next tab. This does not seem to be currently possible with the tab_card.

I can use q.page['name'].items = ...my new tabs... to dynamically change the tabs that are available but q.page['name'].value = 'tab_name' doesn't do anything.

Is this intentional and related to our "no manual navigation" conversation @mturoci ?

See video here of somewhat clunky experience where I show a "upload completed" page and make the user manually click to the next tab
https://h2oai.slack.com/files/UFY03NQ4V/F01FL131QMD/screen_recording_2020-12-02_at_11.47.27_am.mov

@mtanco mtanco added the feature Feature request label Dec 3, 2020
@mturoci
Copy link
Collaborator

mturoci commented Dec 3, 2020

Hi @mtanco, tab_card is not really the component you should use for the scenario in depicted in video above. Tabs should be used to either logically group parts of data together or for showing various views within the same context (e.g. various data viz views for analysis). This is a scenario for multi-step form, take a look at wizard or arno's Big Data app.

q.page['name'].value = 'tab_name' doesn't do anything

The value is used for initial selection only, the selection can change only via user interaction afterwards as we discussed earlier.

@lo5
Copy link
Member

lo5 commented Feb 11, 2022

The UX issue aside, I'd expect the tab to change if value is changed.

@lo5 lo5 added bug Bug in code ui Related to UI and removed feature Feature request labels Feb 11, 2022
@aalencar aalencar self-assigned this Jul 13, 2022
aalencar added a commit that referenced this issue Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in code ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants