Aktivity „hardip“

  • ABP Framework version: v7.1.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How to change the URL on the sidebar logo on the profile settings page?

Refer the attached images

the highlighted has url when it gets clicked it goes to the swagger url of the project, how to change this url?

as shown in the highlighted in the image, when its clciked it goes to swagger url

How to change this url for the profile page?

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?

  • ABP Framework version: v7.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

The menu name is big so I want to give tooltip to it. see image

I want to add tooltip to the sidebar menu, I tries using the WithCustomData of the ApplicationMenuItem in the IMenuContributor, but could not, see image

yes

thank you

  • ABP Framework version: v7.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

When sidebar toggle is clicked it does not hide the sidebar right away, when mouse is removed from sidebar then only it hides the sidebar, is this default behavior and can we change this?

gif for reference

liangshiwei, massive thank you.

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?

ref attached

BlazorWASM

  • ABP Framework version: v7.1.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Does abp.io blazor have a feature of clearing all the cache of the all users/tenants from host tenant like in asp.net zero https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Features-Mvc-Core-Maintenance

I looked at the documentation of the abp.io but did not find it. Can we add this to abp.io blazor as well?

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.

Zobrazených 1 až 10 z 37 záznamov
Made with ❤️ on ABP v8.2.0-preview Updated on marca 25, 2024, 15:11