Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

v-data-table on Vuetify 2.0.5 how to disable change of table header on mobile screens?

I have updated project from Vuetify 1.5 to Vuetify 2.0. I have v-data-table where several columns are sortable. In previous version on mobile screens table was in the same view but x-scrollable. Now table is 100% width and table header is replaced with selector of sortable columns. How can I disable such behavior?

like image 450
zakharov.arthur Avatar asked Aug 09 '19 07:08

zakharov.arthur


1 Answers

add empty mobile-breakpoint to your <v-data-table>, such as <v-data-table :mobile-breakpoint='NaN'>

Update: Vuetify 2.3.9

The above answer may throw an error on the console. mobile-breakpoint expects a number.

Examle:

<v-data-table :mobile-breakpoint="0" />

like image 77
verunar Avatar answered Oct 20 '22 14:10

verunar