programmaticalluy creating instances of a primevue component

UI Components for Vue
Post Reply
Posts: 10
Joined: 28 Nov 2022, 18:33

08 Mar 2023, 14:05

How to programmatically create instances of a primevue ?
I want a dropdown to be created every time I click a button.

Posts: 61
Joined: 06 Sep 2022, 08:59

09 Mar 2023, 10:35

Hi, You can do local import and use the component in Vue instance. I would like to help more. If you share an example, we can talk about it.

Posts: 10
Joined: 28 Nov 2022, 18:33

14 Mar 2023, 12:43

I have two dropdowns in the page. second dropdown shows up once I select the first one.
When I click button add view I want another instance of the two dropdowns to be created.
If I click the button n times I want n instances to be created to the side of the two dropdowns.

I want to programmatically append the same dropdowns to the dom

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests