Hi,
I have updated the code: https://gist.github.com/realLiangshiwei/f3b8c51c576a10ac220d11a6b0dc2cfe
context.Menu.AddItem( new ApplicationMenuItem( MyProjectNameMenus.HostDashboard, l["Menu:Dashboard"], "/HostDashboard", icon: "fa fa-chart-line", order: 2 ).RequirePermissions(MyProjectNamePermissions.Dashboard.Host) .WithCustomData("data-bs-placement", TooltipPlacement.Top) .WithCustomData("data-bs-title", "Hello world") );
liangshiwei, it worked great, thanks a lot man.
BlazorWASM
liangshiwei, the tooltip works fine on the hover (mouseleave and mouseenter), but it does not hide when the menu(anchor tag) is clicked. I tried hiding it with manually remove it when its clicked but then it has to show manually as well, so it creates different problems. Any solution of this?
liangshiwei, massive thank you.
Hi,
You can override the
_Sidebar.cshtml
_Sidebar.cshtml
@using Microsoft.Extensions.Localization @using Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.Themes.LeptonX.Components.SideMenu.MainMenu @using Volo.Abp.LeptonX.Shared.Localization @inject IStringLocalizer<LeptonXResource> L <div class="lpx-sidebar-container"> <div class="lpx-sidebar lpx-scroll-container" id="lpx-sidebar"> <nav class="lpx-nav"> <div class="lpx-logo-container"> <a href="/myUrl"> <div class="lpx-brand-logo"></div> </a> <i class="lpx-icon bi bi-filter-left menu-collapse-icon hidden-in-hover-trigger" aria-hidden="true" data-lpx-toggle="sidebar"></i> </div> <div class="lpx-menu-filter hidden-in-hover-trigger" data-lpx-menu-filter="sidebar"> <i class="lpx-icon bi bi-filter menu-filter-icon" aria-hidden="true"></i> <input class="menu-filter-input hidden-in-hover-trigger" type="text" placeholder="@L["FilterMenu"]" /> <span class="menu-filter-clear hidden"> <i class="lpx-icon bi bi-x clear-icon" aria-hidden="true"></i> </span> </div> <ul class="lpx-nav-menu" id="desktop-sidebar"> @await Component.InvokeAsync(typeof(MainMenuViewComponent)) </ul> </nav> </div> </div>
Hi,
thank you for response.
I don't have the _Sidebar.cshtml.
So, do I create the new file with this name and override like above in that file?