Nested modal inside Dataview

UI Components for Vue
Post Reply
stekosto
Posts: 2
Joined: 14 Nov 2022, 19:12

14 Nov 2022, 19:29

Hi,

I have used in Dataview template the attribute dataKey="something_unique" and the paginator works fine.
Now I want to use a Dialog on each item the Dataview template but when I click the Dialog button, all modals in the list open.
I know I can change the methods (openModal, closeModal) to use event.target or to change the component source code,
but is there any other way?

Thank you

stekosto
Posts: 2
Joined: 14 Nov 2022, 19:12

16 Nov 2022, 18:15

Moved modal out of the Dataview (v-for) and leave button in Dataview (in loop).
Button emits an event which trigger the modal to open in parent component along with specific data (conditionaly based e.g. a unique id for a specific item) to populate the modal

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests