46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
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 StockMan.CORE;
|
|
using StockMan.CORE.Shared;
|
|
using StockMan.CORE.Data;
|
|
|
|
namespace StockMan.CORE.Components
|
|
{
|
|
public partial class NewNavMenu
|
|
{
|
|
[Parameter]
|
|
public List<LinkMan> NavMenuLinks { get; set;} = new List<LinkMan>();
|
|
|
|
[Inject]
|
|
protected IJSRuntime JSRuntime { get; set; } = null!;
|
|
|
|
protected bool isComp = false;
|
|
|
|
protected void compress()
|
|
{
|
|
JSRuntime.InvokeVoidAsync("closeNav");
|
|
isComp = true;
|
|
}
|
|
protected void doShowChildren(string id)
|
|
{
|
|
JSRuntime.InvokeVoidAsync("doShowChildren", id);
|
|
}
|
|
protected void deCompress()
|
|
{
|
|
JSRuntime.InvokeVoidAsync("openNav");
|
|
JSRuntime.InvokeVoidAsync("showMenuBtn");
|
|
isComp = false;
|
|
}
|
|
}
|
|
} |