Hi,
Please advice how can I integrate my existing ASP.NET MVC web application into ASP.NET Zero project? Do you have any tutorial or sample of doing that?
Thanks, Ken
.AddItem(new MenuItemDefinition( AppPageNames.Common.TariffFinderMalaysia, L("TariffCode"), url: "App/TariffCode", icon: "images/myicon.ico", permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_TariffFinderMalaysia) )
Please guide how can I change to my customize icon like pointing directly to the icon file?
thanks In Advanced
ASP.Net Core MVC + JQuery version 8.8
Can You please point out the steps to get it done. thanks in advanced.
Managed to work it out. Share here for anyone that might find it useful:
(1) In AppNavigationProvider class
.AddItem(new MenuItemDefinition( AppPageNames.Tenant.TariffFinderMalaysia, L("TariffFinderMalaysia"), url: "App/ABC", icon: "YourIconFileName" )
(2) In UserMenuItemViewModel class
add
public string GetIconUrl(string appPath, string IconFile)
{
return appPath + $"Common/Images/{IconFile}.ico";
}
(3) In _UserMenuItem.cshtml
replace <i class="kt-menu__link-icon @Model.MenuItem.Icon"></i> with
```
```