Qselect options width
-
the options in select, should be same width as select box width with no ellipses. please help me with this.
Please create a codepen.io to demonstrate issue with the options in q-select.
-
https://codepen.io/bharathb01/pen/GRNJEdN?editors=1010
i dont want options to be that much long. it should be qual to select width(i dont want to set it externally)
-
any ideas?
-
@bharathb01 @dobbel This works I guess: https://codepen.io/pianopronto/pen/wvoKPrz?editors=1011
Maybe not the most elegant solution, but it is a start. Qmenu has a nice
fit
option, but I don’t see anything related on a Qselect. -
thank you! it works !!
-
@bharathb01 Great! If you will use this often in your app, you could make a small component wrapper for it, and call it
my-q-select
or similar. Would save you from having to keep track of multiple width variables. -
This works I guess: https://codepen.io/pianopronto/pen/wvoKPrz?editors=1011
nice, very creative!