You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
828 B
31 lines
828 B
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Biskilog_Accounting.Client.Elements
|
|
{
|
|
public partial class Sidebar
|
|
{
|
|
[Parameter]
|
|
public EventCallback OnClickCallback { get; set; }
|
|
private double m_activeId = 1;
|
|
private string m_class { get; set; } = "layout-menu";
|
|
|
|
private void HandleMenuClick(double a_selectedId)
|
|
{
|
|
m_activeId = a_selectedId;
|
|
OnClickCallback.InvokeAsync();
|
|
StateHasChanged();
|
|
}
|
|
private void Collapse()
|
|
{
|
|
OnClickCallback.InvokeAsync();
|
|
//if (m_class == "layout-menu")
|
|
//{
|
|
// m_class = "layout-menu-collapsed";
|
|
//}
|
|
//else
|
|
//{
|
|
// m_class = "layout-menu";
|
|
//}
|
|
}
|
|
}
|
|
}
|
|
|