Prime React Menu

UI Components for React
Post Reply
abhijeetsinha9
Posts: 4
Joined: 28 Mar 2021, 18:03

01 Apr 2021, 19:40

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} />

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

06 May 2021, 23:40

Hi,

You can use template option for this. Please examine Template section; https://primefaces.org/primereact/showcase/#/menumodel

Best Regards,

abhijeetsinha9
Posts: 4
Joined: 28 Mar 2021, 18:03

17 Jul 2021, 13:12

It worked

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests