Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create scrollable v-list in vuetify?

I have created v-list in flex layout and the v-list fill the remaining space in horizontally in column. But if the list contains lots of element which is total height is bigger than column height then the list sticking out. I have tried to add max-height and fix height to the v-list, but then the list items sticking out from wrapper v-list. And I have tried to add v-scroll but that haven't helped.

So how can I create v-list which will be scrollable when the list has more items than can be appear in div?

like image 595
ZeroProcess Avatar asked Jul 31 '19 08:07

ZeroProcess


People also ask

What is a virtual scroll list in Vue?

Virtual scrolling lists are highly performant, especially when you have a large list of items on your webpage. Using a virtual scroll list can increase the page load speed and improve the user experience overall! Debugging Vue.js applications can be difficult, especially when there are dozens, if not hundreds of mutations during a user session.

What is vuetify Vue?

Vuetify — A Material Design Framework for Vue.js Vuetify is a Material Design component framework for Vue.js. It aims to provide all the tools necessary to create beautiful content rich applications.

How do I create a snackbar in vuetify?

We can create snackbars in Vuetify using the v-snackbar component. In the code below, we create a "Close" button in the action slot of the snackbar. When this button is clicked, the snackbar variable is set to false to hide the snackbar. snackbar is false by default, so at first we can only see the button that opens the snackbar:

What's new in vuetify V-app-bar-title component 11?

Activator slot redefinition in vuetify v-menu component 11 Vuetify v-app-bar-title component is truncated with plenty of room to spare Hot Network Questions


1 Answers

Try to add the following CSS rules :

.v-list{
  height:200px;/* or any height you want */
  overflow-y:auto
}

check this pen to see the demo

like image 141
Boussadjra Brahim Avatar answered Oct 04 '22 08:10

Boussadjra Brahim