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

2 Feature Requests #27

Open
danyball opened this issue Aug 25, 2020 · 4 comments
Open

2 Feature Requests #27

danyball opened this issue Aug 25, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@danyball
Copy link

Hi Guys! Nice Addon.

It would be cool if you implement these requests:

  1. Add parameterName to have possibility to disable addon in a specific story. From SB:

Note if the parameters to a story include { foo: { disable: true } } (where foo is the parameterName of your addon), your decorator will not be called.

  1. Make Panel title "HTML" customizable

Thanks
Daniel

@dbruvers
Copy link

@danyball we needed the first feature as well on a story that loaded all of Bootstrap's icon and was slowed down significantly by Prettier parsing the markup it seems.

Adding this seems to have disabled the addon's behavior although it's tab still appears in the Addons Panel:

MyStory.parameters = {
  html: {
    disable: true,
  }
};

@hannahwalsh7
Copy link

Have there been any updates on removing the tab from the Addon Panel when disabled?

@jiwoo-choi
Copy link
Contributor

@hannahwalsh7 disable option is now available as of v6.1.0.

@danyball
Copy link
Author

3 years later :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants