QSelect Sticky Header
-
Hello,
I’m trying to use the QSelect in a way that the first element of the popup list is always shown at the top, even when the user scrolls down. Technically speaking, I want the content defined inside my <template v-slot:before-options > to have a similar behavior of QPageSticky or a sticky header in a QTable. Setting style=“position: sticky;” doesn’t seem to do the trick.
Is there a way to achieve this?
Thanks in advance.
-
first element of the popup list is always shown at the top
What about the rest of the options? Where\how are they to be displayed?
How about this example, this demo displays the dialog on top…? ( second demo)
https://quasar.dev/vue-components/select#Example--Show-options-in-dialog
-
Just tried sticky, works fine:
-
@Ilia True. I forgot to add the “top” proprety after the position. Thanks for pointing that out!
-