You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I use
Im using angular and compodoc to feed storybook the documentation and controls.
Situation
When I make a component that has lifecycle hooks (and other public methods), it also shows up in the controls section.
For the generated documentation that's oke, but not for the controls section.
Also other stuff like class variables are also shown up.
This is a current workaround but in my opinon it should not be necessary for the controls: ngOnInit: { table: { disable: true, }, },
Expected behaviour
I think that is not the correct behaviour and we should only show the inputs and outputs in the controls section.
For the readme it should still be visible.
Do you agree or disagree? Am I missing something that this is already possible but not documented (or I couldn't find it).
Also if we agree then we still need to think about how to integrate this and that it still would work for other frameworks.
Maybe we can also add configuration to what sections to show in the controls.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What I use
Im using angular and compodoc to feed storybook the documentation and controls.
Situation
When I make a component that has lifecycle hooks (and other public methods), it also shows up in the controls section.
For the generated documentation that's oke, but not for the controls section.
Also other stuff like class variables are also shown up.
This is a current workaround but in my opinon it should not be necessary for the controls:
ngOnInit: { table: { disable: true, }, },
Expected behaviour
I think that is not the correct behaviour and we should only show the inputs and outputs in the controls section.
For the readme it should still be visible.
Do you agree or disagree? Am I missing something that this is already possible but not documented (or I couldn't find it).
Also if we agree then we still need to think about how to integrate this and that it still would work for other frameworks.
Maybe we can also add configuration to what sections to show in the controls.
Beta Was this translation helpful? Give feedback.
All reactions