question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure default tab

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m always frustrated when I cannot make it as easy as possible for the user like when the user has to click something unnecessarily.

Describe the solution you’d like It would be great, if the default tab is configurable. Currently the default tab is always canvas. image

Describe alternatives you’ve considered Thanks to #7066 and #9095 we are able to hide the canvas tab, but this is not an option, because I want to keep it. My users want to see the docs tab by default and switch to another if they need to.

Are you able to assist bring the feature to reality? Yes I can, if you tell me some starting points to implement this.

Additional context Even though the canvas tab is hidden on my start page, the canvas tab is selected by default:

image

Written regarding the storybook version 6.0.12.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:32 (5 by maintainers)

github_iconTop GitHub Comments

23reactions
openscriptcommented, Aug 19, 2020

As it turns out this is actually already possible. I’ve added a .storybook/preview.js config with the following content:

import { addParameters } from '@storybook/client-api';

addParameters({
  viewMode: 'docs',
});

I’m on version 6.0.13. I’ve found the necessary hints here.

17reactions
ScottEAdamscommented, Aug 21, 2020

Maybe I am wrong but is that the same as doing

export const parameters = {
	actions: { argTypesRegex: '^on[A-Z].*' },
	viewMode: 'docs'
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change a Word document's default tabs | TechRepublic
Click the Home tab and then click the Paragraph group's dialog launcher (the small arrow in the bottom-right corner). In Word 2003, choose...
Read more >
Change the default tab order for controls on a form
Change the default tab order for controls on a form · Right-click the control for which you want to change the tab order,...
Read more >
How to set the default view/tab for the Windows 10 Task ...
Set the default tab for Task Manager, in Windows 10. First, open the Task Manager. If it starts in the compact view, click...
Read more >
Set Default Tab for Task Manager in Windows 10 - Winaero
Open the Task Manager app. · Select Options > Set default tab from the main menu. · Select the desired tab from the...
Read more >
How to change the default "Tab" that is ... - Salesforce Help
To change the default Tab that is viewable when a record is opened for any Object in Lightning Experience, follow the below steps:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found