question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QSelect: ability to customize scroll bar

See original GitHub issue

Is your feature request related to a problem? Please describe. In my current project there is a need to customize scroll bars for the whole project. While it is doable elsewhere via QScrollArea component, there is no way to do it inside select dropdown.

Describe the solution you’d like Solution could be wrapping options list in QScrollArea and add ability to pass styling props for it from QSelect props:

<q-select
  :options="options"
  :scroll-styling="{
    scrollStyle: { ... },
    thumbStyle: { ... }
  }"
/>

What I’ve tried Put all options inside before-options slot, but it brings a lot of overhead and feels more like a hack rather than solution

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
rstoenescucommented, May 21, 2020

Hi,

This can (and should) be done through regular css (albeit not all browsers will be happy, I must admit). https://scotch.io/tutorials/customize-the-browsers-scrollbar-with-css

It might sound like a good idea to add QScrollArea to QSelect’s internals, but that would mean a huge overhead for which the majority of devs won’t even benefit. We are trying to keep performance at its best, which I must regretfully decline this request. Sorry for any inconveniences and hope that the CSS approach will be in your favour.

0reactions
t-manancommented, Sep 22, 2022

Rocket science 😃 https://codepen.io/pdanpdan/pen/VwxzEMQ

Thanks @pdanpdan it works 🎊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling scrollbar specifically inside a select type input with CSS
The scrollbar of select dropdown can be styled by using this way: select::-webkit-scrollbar. In order to let the css take effect, ...
Read more >
Scrollbar disappears when focused - Quasar forum
BTW, my app is working fine now with scrollbars when needed, ... views / tables into Vue components, and be able to more...
Read more >
Select | Quasar Framework
The QSelect Vue component has two types of selection - single or multiple. This component opens up a menu for the selection list...
Read more >
How To Create a Custom Scrollbar - W3Schools
Learn how to create a custom scrollbar with CSS. Custom Scrollbars. Custom Scrollbar Example. Note: The -webkit-scrollbar is not supported in Firefox or...
Read more >
Pan shortcut revit - - Convittiadi Campobasso
To create Custom Revit Keyboard Shortcuts, press “KS” to open the Shortcuts menu. ... LinkScroll hacia delante (mover la rueda) Zoom (Alejar) Scroll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found