Chron
2 weeks ago
224
16
Vue

icheckJs with Vue

Posted 2 weeks ago by Chron

I tried implementing icheckJS with Vue

checkbox

<div class="container mt-4" id="app">
    <input type="radio" @click="greet">
</div>

script

    $('input[type="radio"]').iCheck({
      checkboxClass: 'icheckbox_square-green',
      radioClass: 'iradio_square-green',
            
    });

new Vue({
    el: '#app',
    methods: {
        greet() {
            console.log('hello');
        }
    }
});

When I click the checkbox, it doesn't trigger the click event.

Please sign in or create an account to participate in this conversation.