ember-context-menu icon indicating copy to clipboard operation
ember-context-menu copied to clipboard

Style Elements differently

Open PowerP opened this issue 6 years ago • 3 comments

Hi,

I'm wondering how I can style elements different. E.g. I want to give my "delete" option "color: red". I also would like to add "hr" separators.

It would help when a contextItem would support a "class" attribute.

Cheers, Pirmin

PowerP avatar Nov 15 '18 09:11 PowerP

Hi @PowerP,

Good point, I will take a look at implementing custom classes soon.

Could you be more specific about your wish for the hr separator? Do you mean using a hr separator between every item, or have grouped items (#9)?

Thanks, Chantal

cbroeren avatar Nov 15 '18 13:11 cbroeren

Hey @cbroeren,

grouping :)

Cheers

PowerP avatar Nov 17 '18 11:11 PowerP

You can support infinite customization by providing your own context-menu and/or context-menu-item templates. I'm using that approach to do custom icons that are not font-awesome.

RobbieTheWagner avatar Jan 09 '20 13:01 RobbieTheWagner