Adding an id to every p-tree child elements

UI Components for Angular
Post Reply
Aymen-S
Posts: 2
Joined: 08 Jun 2023, 13:55

08 Jun 2023, 15:34

Hi we are trying to identify child elements inside a p-tree tag which are transferred later to spam inside div by PrimeNG for that we need to identify these elements by id so we can perform E2E test in some scenarios of pour app. Is there a way to pass a unique id to the child of p-tree?
this is my code:

Code: Select all

                                    <p-tree
                                        [value]="element_list"
                                    >
                                    </p-tree>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests