[Live Components] Reach a specific LC method when input change? #2174
-
Hello awesome guys, Context:I have a LC that render my form ( More on the problem:My LC display a form through a EventType and an eventDTO ( But unless I misstyped somewhere, I find no easy way to plug an 'onChange' event of a field to a method in LC. Do you know how to do, or if it's a proper feat need? As the validation ( For now, I think I can workaround it with a stimulus controller plugged to LC, but it may be more elegant to directly catch it in LC? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi! If I understand correctly, you want to make a call to a method of your LC when your input has changed and display something depending on the content?
Then everytime the "change" event is triggered, the live action "something" is called which can do anything you want and then re-render the component with the customText changed. I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello! |
Beta Was this translation helpful? Give feedback.
Hi!
If I understand correctly, you want to make a call to a method of your LC when your input has changed and display something depending on the content?
If so you should be able to do the following: