Quasar: [Request] select all rows in Data Table

Created on 10 May 2017  路  7Comments  路  Source: quasarframework/quasar

Could you please add a possibility to select all visible rows in Data Table with a checkbox in a header?
Thank you in advance!

Most helpful comment

Will do. Thanks for filing this.

All 7 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danikane picture danikane  路  3Comments

nueko picture nueko  路  3Comments

jean-moldovan picture jean-moldovan  路  3Comments

sskwrl picture sskwrl  路  3Comments

florensiuslaylim picture florensiuslaylim  路  3Comments