I have a dropdown, which i can easily give an id with the "id" properties. But i also want to give all the items in the dropdown an id.
I havent found anything for this on google/this forum. Is there a way?
Giving Dropdown items an Id
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think you can use itemTemplate property. Please see our Advanced dropdown; https://www.primefaces.org/primereact/s ... #/dropdown
Code: Select all
carTemplate(option) {
...
return (
<div id={option.id} ...
)
}
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests