Skip to content

Specify font awesome icon class #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hemanth089 opened this issue Dec 24, 2015 · 5 comments
Closed

Specify font awesome icon class #328

Hemanth089 opened this issue Dec 24, 2015 · 5 comments

Comments

@Hemanth089
Copy link

Hi,

Can you add new feature to specify font awesome icon class to display icons?

http://fontawesome.io/icons/

@bbrala
Copy link
Member

bbrala commented Dec 26, 2015

For now i'd advise to add the icons yourself. Just pick which icons you want from the SVG in encharm/Font-Awesome-SVG-PNG and follow the docs for customisation.

@bbrala bbrala closed this as completed Dec 26, 2015
@Hemanth089
Copy link
Author

A minor tweek on jq and css files I made it done. Now I can add font awesome icons to context menu.

@bbrala
Copy link
Member

bbrala commented Dec 28, 2015

Can you share that tweak in a branch so i can have a look?

@bbrala
Copy link
Member

bbrala commented Dec 28, 2015

I see no code. :)

@Hemanth089
Copy link
Author

Sorry, attached the file in email that didn't work out well. Not sure this is work for all. But for me its working fine. please find the attachment in this comment.

eg of usage:
$.contextMenu({
selector: ".context-menu-selector",
items: {
"Open": {
name: "Open",
icon: "fa fa-eye fa-lg fa-fw",
callback: function (key, options) {

                            }
                        }
                    }
                });

jquery.contextMenu.zip

bbrala added a commit that referenced this issue May 24, 2016
…nd manually including font-awesome css.

See issues: #338 #328 #249
bbrala added a commit that referenced this issue May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants