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

Feature Request: Storybook api to open particular canvas alone in new tab #7523

Closed
RaghulXander opened this issue Jul 22, 2019 · 4 comments
Closed

Comments

@RaghulXander
Copy link

By clicking Story name on side panel how can we open the particular canvas of a story in a new tab.
We have a button called open canvas in new tab but how can we automate it ??
Do we lack that feature through Api ?

@ndelangen
Copy link
Member

I'm not sure what you mean by automating it? The URL is created from state here:
Addons have access to this state.

https://github.com/storybookjs/storybook/blob/next/lib/ui/src/components/preview/preview.js#L146-L147

@stale
Copy link

stale bot commented Aug 13, 2019

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Aug 13, 2019
@stale
Copy link

stale bot commented Sep 12, 2019

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@stale stale bot closed this as completed Sep 12, 2019
@RaghulXander
Copy link
Author

Its not like automating...what i mean from the below code is

window.open(`${baseUrl}?id=${storyId}${stringifyQueryParams(queryParams)}`)

can user control whether it can be _blank or _self on clicking from side bar.

@RaghulXander RaghulXander changed the title Query: Storybook api to open particular canvas alone in new tab Feature Request: Storybook api to open particular canvas alone in new tab Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants