Reputation: 195
I am using vuetable-2 library for tables. I 've already seen this page and it didn't helped me. I use single file components. The transform() function does not work. Here is the code:
// SomeComponent.vue
<script>
methods: {
transform(data) {
console.log('transform()')
return data
}
}
</script>
<template>
<vuetable ref="vuetable" :api-url="'...'" fields="..." :transform="transform"></vuetable>
</template>
Can anyone help?
Upvotes: 0
Views: 156
Reputation: 529
You might have missed the colon before transform props. Or try changing the function's name from transform to transformMethod
:transform="transform"
Upvotes: 1