Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify Datatable Actions Row

Is it possible to left align the rows per pages and page navigation and put a button in its place in the same row?

enter image description here

like image 632
Zeus Avatar asked Apr 08 '26 01:04

Zeus


1 Answers

The actions row are aligned right by default. There is a way to achieve what you want though. You can use custom pagination and hide the current one:

 <v-data-table
    :headers="headers"
    :items="desserts"
    :search="search"
    hide-actions
    :pagination.sync="pagination"
  >

And add this after the datatable:

<v-layout row justify-center>
    <v-pagination v-model="pagination.page" :length="pages"></v-pagination>
    <v-btn class="test">test</v-btn>
</v-layout>

See more here.

Here is a Codepen in action.

like image 118
DjSh Avatar answered Apr 09 '26 21:04

DjSh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!