HTML Elements Forums Navigation Menu & Tree Use 'fa-icon' as icon image for smart menu item?

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Martin 3 weeks, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100998
    Avatar
    davout
    Participant

     

    Is it possible to use a ‘Font Awesome’¬† icon as the left placed icon for a smart-menu-item?¬† Like…

    When I try this…

    <smart-menu-item [value]=”‘contact'”>Contact
    <fa-icon [icon]=”iconContact” style=” title=”contact” size=”2x”></fa-icon>>
    </smart-menu-item>

    The icon is positioned on the right rather than the left of the menu item name?

     

    #101005
    Avatar
    Martin
    Participant

    Hello davout,

     

    Yes, it is possible. You should put the fa icon before the text of the menu item (in your case “Contact”), like this:

    <smart-menu-item [value]="'contact'">
    <fa-icon [icon]="iconContact" title="contact" size="2x"></fa-icon>
    Contact
    </smart-menu-item>

     

    Best Regards,

    Martin

    Smart HTMLElements Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.