ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

this.$refs.vuetable.selectedTo #121

Open lemonpigpig opened 8 years ago

lemonpigpig commented 8 years ago

var tableColumns = [{ name: '__checkbox:', title: '', dataClass: 'text-center', titleClass: 'text-center',

}]; i find ' this.$refs.vuetable.selectedTo' is undefined,and why i click the checbox of a row of table can select all instead of the row i selected

ratiw commented 8 years ago

@lemonpigpig You have to specify the unique key for your __checkbox:<key> as well. In my example, the unique key is id field, so it must be specified as __checkbox:id.

The above code you provide seems incorrect. --> name: '__checkbox:'