QTable disable pagination
-
I am using the QTable with very limited set of rows. Is there a way to disable pagination? Right now when I set the
hide-bottombar
the paging control is not shown, however the page size settings seem to be intact, so that all records are not shown in the QTable.<q-table :data="tableData" :columns="columns" row-key="name" hide-header hide-bottom />
-
@venkyvb
Try something like this.<q-table :data="tableData" :columns="columns" row-key="name" :rows-per-page-options="[0]" :pagination.sync="pagination" hide-header hide-bottom /> data () { return { pagination: { page: 1, rowsPerPage: 0 // 0 means all rows } }
-
@metalsadman Thanks. This works !!
-
Worked for me for v1.0.0! Thanks @metalsadman
But why
:hide-pagination="true"
is not hidding pagination?
-
@Lou-Rectoret it needs quasar v 1.12+.
-
@metalsadman thank you it’s worked me.