How to use kor-toggle, I can't get the change of the value #117
-
kor-ui is one of the most beautiful WebComponent ui libs, So I select it . I used the stencil to develop the component. The code is as follow. <kor-toggle onchange={this.korToggleChange}></kor-toggle> I can't monitor the change event. The func is not called. I go to read the source code of kor-ui, get nothing. How can I get the value of kor-toggle, how to monitor the change of the value ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
onChange is also unuseful |
Beta Was this translation helpful? Give feedback.
-
Hi, the components fire events according to the property name changed. For example, toggle will fire You can find more info on that here: https://kor-ui.com/introduction/data-binding |
Beta Was this translation helpful? Give feedback.
Hi, the components fire events according to the property name changed. For example, toggle will fire
active-changed
when toggled on or off.You can find more info on that here: https://kor-ui.com/introduction/data-binding