QSelect: ability to customize scroll bar
See original GitHub issueIs 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Thanks @pdanpdan it works 🎊