@kongponents/ksegmentedcontrol
v7.2.2
Published
Segmented Control component.
Downloads
437
Keywords
Readme
@kongponents/ksegmentedcontrol
<template>
<KSegmentedControl
:options="['one','two']"
:v-model="selected"
@click="handleToggle"
/>
</template>
<script>
export default {
data() {
return {
selected: 'one'
}
},
methods: {
handleToggle(selected) {
this.selected = selected
// do something, make api call?
}
}
}
</script>