Prime React Menu

UI Components for React
Post Reply
abhijeetsinha9
Posts: 1
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: 4710
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,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest