Mercurial > Grille > Grille-Config
diff Components/Layout/MainLayout.razor.cs @ 0:689cde763395
init cimmit
author | Franklin Schmit <meokcin@gmail.com> |
---|---|
date | Thu, 05 Sep 2024 10:16:16 +0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Components/Layout/MainLayout.razor.cs Thu Sep 05 10:16:16 2024 +0800 @@ -0,0 +1,42 @@ +using System.Net.Http; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.AspNetCore.Components.Forms; +using Microsoft.AspNetCore.Components.Routing; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.Web.Virtualization; +using Microsoft.JSInterop; +using Radzen; +using Radzen.Blazor; + +namespace Grille2.Components.Layout +{ + public partial class MainLayout + { + [Inject] + protected IJSRuntime JSRuntime { get; set; } + + [Inject] + protected NavigationManager NavigationManager { get; set; } + + [Inject] + protected DialogService DialogService { get; set; } + + [Inject] + protected TooltipService TooltipService { get; set; } + + [Inject] + protected ContextMenuService ContextMenuService { get; set; } + + [Inject] + protected NotificationService NotificationService { get; set; } + + private bool sidebarExpanded = true; + + void SidebarToggleClick() + { + sidebarExpanded = !sidebarExpanded; + } + } +}