MicroDroid / vue-materialize-datatable

A fancy Materialize CSS datatable VueJS component.
https://overcoder.dev/vue-materialize-datatable
MIT License
178 stars 66 forks source link

"TypeError: computedRows.sort is not a function" how to fix this error? #27

Closed jeanmari closed 7 years ago

jeanmari commented 7 years ago

this is the component

<datatable v-if="rows" v-on:row-click="onRowClick" title="List of Rooms" :columns="columns" :rows="rows" :perPage="[10, 20, 30, 40, 50]"></datatable>

and the ajax

axios.get('api/rows') .then(function(response){ vm.rows= response.data; console.log(vm.rows) });

MicroDroid commented 7 years ago

It looks like you have been having problems with passing data the component, and by closing this issue it looks like it has been resolved for you.

If anybody gets a similar error, I would need to see the data you're passing to the component.