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
Is your feature request related to a problem? Please describe.
Right now you can use parameters.docs.source.code to static render the source code of a component.
But i want to customize the source code and have the args dynamicly included.
For example:
I want to show a vue component as JSON string.
And when a user interacts with the args over the control area, args should be added or removed from the json string
Describe the solution you'd like
Solution 1:
Change the code attribute to string or a function returning a string, but the function gets a parameter with the newest (updated) args.
Solution 2:
Include the parameters.docs.source.code to the render funktion, so that the code gets always the newest args or include it to the return of the etup function within the render function.
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
-
Is your feature request related to a problem? Please describe.
Right now you can use
parameters.docs.source.code
to static render the source code of a component.But i want to customize the source code and have the args dynamicly included.
For example:
I want to show a vue component as JSON string.
And when a user interacts with the args over the control area, args should be added or removed from the json string
Describe the solution you'd like
Solution 1:
Change the code attribute to string or a function returning a string, but the function gets a parameter with the newest (updated) args.
Solution 2:
Include the
parameters.docs.source.code
to the render funktion, so that the code gets always the newest args or include it to the return of the etup function within the render function.Examples of solution 2:
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions