-
Hi, Now, I'm trying to set a value, read the current selected value, etc, etc, and I've been stuck for almost two days because there are methods that don't work if I call them from the instance, like myVs.setValue(3); The first thing I have done is to create a use case with vanilla js similar to the one I have implemented in my Royale application and I have verified that the behaviour is the same: `
Debugging the code I see that "myc.setValue(50)" launches the method "setValueMethod" and "misel.setValue(100)" launches "setValue". Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
We can use instances to trigger any method. When we call So check the relevant function and call with instance. |
Beta Was this translation helpful? Give feedback.
-
Hi sa-si-dev, thanks for the clarification, I will look into it. |
Beta Was this translation helpful? Give feedback.
We can use instances to trigger any method.
Whenever we trigger any method with DOM element, internally it would get the instance from the DOM element and trigger the respective method.
When we call
ele.setValue()
, it would callinstance.setValueMethod()
.So check the relevant function and call with instance.