How to override a component prop default value?

UI Components for Vue
Post Reply
jadox13597
Posts: 2
Joined: 04 Jul 2021, 11:19

04 Jul 2021, 11:38

Hi, greetings.

How can I override prop default value?

For example, I have this,

Code: Select all

<Dropdown v-model="selectedCity" :options="cities" scrollHeight="300px" />
I want to set the scrollHeight props value of the dropdown component to 300px instead of the default 200px, so i dont have to write the props. If not, I need to add this props to all my dropdown component which is quite tedious work.

If we take a look here https://www.vue-tailwind.com/docs/settings/, they handle this quite well, clean and simple, do this kind of API exist in PrimeVue?

Thank you very much.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest