Replies: 1 comment 2 replies
-
The second function argument is typically called |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently have a decorator for my stories that adds some HTML wrapper:
I'd like to use a slightly different HTML wrapper style when a story is viewed in Docs mode (as opposed to Canvas mode). Ideally, I'd implement it with something like this:
addDecorator
has a second parameter (what I calledconfig
above) but there doesn't seem to be any indicator on which view is currently active.Is this possible at all with any other API currently available?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions