diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index aa0becf3..4c50e9ce 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 1.1.2605.1809 + 1.1.2605.1909 diff --git a/Lux.UI/Components/Layout/GroupElem.razor b/Lux.UI/Components/Layout/GroupElem.razor new file mode 100644 index 00000000..77beda3f --- /dev/null +++ b/Lux.UI/Components/Layout/GroupElem.razor @@ -0,0 +1,30 @@ + + +@if (isMenuOpen) +{ + foreach(var elem in subElement) + { + + } + @* *@ +} + diff --git a/Lux.UI/Components/Layout/GroupElem.razor.cs b/Lux.UI/Components/Layout/GroupElem.razor.cs new file mode 100644 index 00000000..59161f82 --- /dev/null +++ b/Lux.UI/Components/Layout/GroupElem.razor.cs @@ -0,0 +1,58 @@ + +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 - - @if (isArticoliOpen) - { - - - } - - @if (isCicloProdOpen) - { - - - } - @* - *@ - - @if (isContattiOpen) - { - - - } - @* *@ - @* *@ + + +