Closed z1haze closed 8 years ago
@z1haze I don't understand what you would like to do. Please explain more.
The data that is returned from the api-url and goes into the table, I would like to store that in a data variable. Unless I'm missing something, (which i probably am) i dont see how to grab the data from the table specifically. Thanks!
sweet, not a lot you haven't thought of!
I finally got around to attempting this, but all i am getting is undefined for this. In the example in the wiki here you use v-ref:vuetable, trying to change that to v-ref="mytable" breaks t he site v-ref:undefined must be used on a child component. Found on <div>. (found in component: <server-votes>)
@z1haze I may have given you the incorrect syntax, please check its documentation here
The given error is in your <server-votes>
component. Advise you to carefully check it first.
For future reference, the correct syntax is:
<vuetable v-ref:mytable></vue-table>
And the data are accessible by:
var vm = new Vue({....});
console.log(vm.$refs.mytable.tableData[0])
I would like to know how to access the data for the table so I can use it and store it in a property. I would only like to display a specific element if results are present, and I think this would be beneficial. Thanks!