Could you please add a possibility to select all visible rows in Data Table with a checkbox in a header?
Thank you in advance!
Will do. Thanks for filing this.
+1 :)
hi, i'm find a solution:
this is the function for select all:
function selectAll() {
this.$refs.dtable.clearSelection()
this.$refs.dtable.selectedRows.push(this.$refs.dtable.rows[0])
this.$refs.dtable.selectedRows.push(this.$refs.dtable.rows[1])
this.$refs.dtable.rowSelection[0] = true
this.$refs.dtable.rowSelection[1] = true
this.$refs.dtable.toolbar = 'selection'
}
and the data-table component:
<q-data-table ref="dtable" :data="table" :config="config" :columns="columns">
@ygorcf we need a checkbox on header too 馃拑
Closing as code is ready in future v0.15 datatable revamp.
@rstoenescu Hi! When will v0.15 be out? Thanks!
Is there an event for when you click the select-all checkbox from the header?
Most helpful comment
Will do. Thanks for filing this.