Open Closed

Icons in submenu #3268


0
cleverplatform created

Hi

I want to ask how to force Menu Contributor to display submenu item icon ?

Thanks

  • ABP Framework version: v5.2.2
  • UI type: MVC


2 Answer(s)
  • 0
    EngincanV created
    Support Team

    Hi, you can define the icon when defining a new menu item like below:

    context.Menu.AddItem(
        new ApplicationMenuItem("MyProject.Crm", l["Menu:CRM"])
            .AddItem(new ApplicationMenuItem(
                    name: "Name",
                    displayName: "Display",
                    url: "/crm/my-url",
                    icon: "fa fa-tag" //define your Font Awesome icon here.
                )
            ));
    
    • Manipulating existing menu item and changing the icon of it, please see the Navigation Menu documentation.
  • 0
    cleverplatform created

    Thanks Engincan.