using Microsoft.EntityFrameworkCore.Migrations.Operations; namespace Lux.UI.Components.Layout { public partial class GroupElem { [Parameter] public List NameList { get; set; } = new List(); [Parameter] public List PageList { get; set; } = new List(); [Parameter] public List IconList { get; set; } = new List(); [Parameter] public bool ShowText { get; set; } = true; protected string hideText { get => ShowText ? "" : "invisible"; } protected string subArtCss { get => ShowText ? "ps-5 pe-3" : "ps-5 pe-2"; } private bool isMenuOpen = false; public List subElement { get; set; } = new List(); public List subIcon { get; set; } = new List(); private void Toggle() { isMenuOpen = !isMenuOpen; UpdateData(); } private void UpdateData() { subElement = new List(); subIcon = new List(); for(int i = 1; i