Page 1 of 1

Select size

Posted: Wed Oct 24, 2018 12:22 am
by Alban
Hello,

How is it possible to set specific size for Select ?
data-size="xxx" doesn't work.


Thanks.

Re: Select size

Posted: Wed Oct 24, 2018 12:28 am
by olton
Put select into container with required size

Re: Select size

Posted: Wed Oct 24, 2018 12:35 am
by Alban
Hello,

I haven't got problem with Input, but for Select i tried

Code: Select all

<select data-role="select" data-size="400">
        <option value="test">Test</option>
</select>
but it doesn't work.

Re: Select size

Posted: Wed Oct 24, 2018 1:00 am
by olton
Select have not option size and attribute data-size, read docs

Re: Select size

Posted: Fri Oct 26, 2018 5:27 am
by sputnikhemp
You can do that with jQuery.
Here is an example: https://i.imgur.com/a5oNVaT.png

Re: Select size

Posted: Fri Oct 26, 2018 1:18 pm
by olton

Code: Select all

<style>
  .my-select-size {
    width: 400px;
  }
</style>

<select data-role="select" data-cls-select="my-select-size">
...
</select>