-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add option to switch to a specific panel #811
Comments
Good point, will add this to the list for #1209 api-v2 |
@ndelangen maybe it's worth to mention that we have this API in |
Regarding this, is it currently possible to set a default panel for ALL stories? For example, I'm using the storybook-readme addon and I'd want to have it as the default opened panel. |
@ls-guillaume-lambert The order of addons in the "addons panel" is the same as you import them in 'addons.js'. And the first panel will be opened as you run Storybook. |
Perfect, thanks for the heads up! |
Good tip @usulpro ! I think that's certainly one to add to the docs somewhere! |
upd: this option was renamed from setOptions({ selectedPanel: 'storybook/actions/panel' }); |
Issue by mnmtanish
Monday Sep 26, 2016 at 09:21 GMT
Originally opened as storybook-eol/storybook-addon-options#4
It can be useful to show some panels by default when viewing certain stories.
Related issue: storybook-eol/storybook-addon-knobs#29 (comment)
cc: @usulpro
The text was updated successfully, but these errors were encountered: