Replies: 1 comment
-
|
Hey @sled, there are a few ways of doing it; it usually depends on how complex the component you want to update is. If your component is simple, like a When the component is more complex, I like to render both versions on the server and hide one. Then, in a stimulus controller, I can hide the active one and show the alternate version when required. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering what's the best way to change a component's appearance from Javascript. E.g. if I wanted to change the color or size of a
Badgefrom a Stimulus controller, how would I do that?Any pointers are appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions