Skip to content

How to use kor-toggle, I can't get the change of the value #117

Answered by eduferfer
Linya-IronMan asked this question in Q&A
Discussion options

You must be logged in to vote

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 ?

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Linya-IronMan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants