How to programmatically create instances of a primevue ?
I want a dropdown to be created every time I click a button.
programmaticalluy creating instances of a primevue component
-
- Posts: 66
- Joined: 06 Sep 2022, 08:59
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.
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
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
-
- Posts: 66
- Joined: 06 Sep 2022, 08:59
Can you share a simple codesandbox example? An example we can talk about helps us.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest