How can i apply color: 'red' to label: 'Earth' . and color : 'green' to label: 'Moon'
items = [
{
label: 'Earth'
},
{
label: 'Moon'
}
}
];
menu: any = React.createRef();
<Menu model={this.items} popup ref={this.menu} />
Prime React Menu
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
You can use template option for this. Please examine Template section; https://primefaces.org/primereact/showcase/#/menumodel
Best Regards,
You can use template option for this. Please examine Template section; https://primefaces.org/primereact/showcase/#/menumodel
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests