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"; //} } } }