namespace Biskilog_Accounting.Client.Elements { public partial class Sidebar { private double m_activeId = 1; private string m_class { get; set; } = "layout-menu"; private void HandleMenuClick(double a_selectedId) { m_activeId = a_selectedId; StateHasChanged(); } private void Collapse() { if (m_class == "layout-menu") { m_class = "layout-menu-collapsed"; } else { m_class = "layout-menu"; } } } }