Seeking advice on customizing the look of a MenuItem in PrimeNG. Here's what I have attempted so far:
<p-menu [style]="{'width': '400px'}" #menuOpcoesLista popup="popup" [model]="opcoesListaCS" appendTo="body"></p-menu>
This is the function used to create items for the menu:
this.opcoesListaCS = [
{label: 'Approve', command: (event) => { this.approve() }},
{label: 'Send email', command: (event) => { this.sendMail() }},
{label: 'Details', command: (event) => { this.details() }}];
I've tried adding styling as per PrimeNG documentation, but it hasn't worked. Various formats and approaches like using classes were tested with no success.
Any insights on changing the color? The aim is to have the first item in green, the second in yellow, and the third in red.