Hello,
I am new to PrimeVue. I am using drop down component with single value selection in my application and I observed that the width of the drop down changes dynamically to match the currently selected value. Is there a way to keep the width of the drop down fixed irrespective of the changes in values?
Thanks!
How to keep a fixed dropdown width in primevue?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
You may use style or class props.
or
or global;
Hope it helps.
Code: Select all
<Dropdown :style="{min-width: '12em'}"
Code: Select all
<Dropdown :class="my-select}"
Code: Select all
.my-select {
min-width: 12em;
}
Code: Select all
.p-dropdown {
min-width: 12em;
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests