@chibi929/vuejs-simple-stick
v0.1.0
Published
A simple joystick component for Vue.js
Downloads
1
Readme
vuejs-simple-stick
This is a Vue.js(v2.x+) component.
JoyStick wrapped for Vue.js(v2.x+). Thank you!
Usage
Register the locally within components.
import SimpleStick from 'vuejs-simple-stick'
export default {
components: {
SimpleStick
}
}
Or globally using Vue.compoennt
import Vue from 'vue'
import SimpleStick from 'vuejs-simple-stick'
Vue.component('SimpleStick', SimpleStick)
Example
<template>
<VuejsSimpleStick @input="onInput" />
</template>
<script>
export defualt {
methods: {
onInput(value) {
console.log('onInput:', value)
}
}
}
</script>