cbroeren / ember-context-menu

An ember addon for custom context-menu
https://cbroeren.github.com/ember-context-menu
MIT License
23 stars 15 forks source link

Style Elements differently #39

Open PowerP opened 5 years ago

PowerP commented 5 years ago

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

cbroeren commented 5 years ago

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

PowerP commented 5 years ago

Hey @cbroeren,

grouping :)

Cheers

RobbieTheWagner commented 4 years ago

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.