JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Menu & Tree Use 'fa-icon' as icon image for smart menu item?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100998
    davout
    Member
    Up
    0
    Down

     
    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
    Martin
    Member
    Up
    0
    Down

    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.