using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using System.Net.Http; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Components.Forms; using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.Web.Virtualization; using Microsoft.JSInterop; using MP.MONO.UI; using MP.MONO.UI.Shared; using MP.MONO.UI.Components; using MP.MONO.Core; namespace MP.MONO.UI.Components { public partial class DisplayInfo { [Parameter] public string ParamName { get; set; } = "ND"; [Parameter] public string btnType { get; set; } = "btn-primary"; [Parameter] public Dictionary currInfo { get; set; } = new Dictionary(); [Parameter] public bool showSection { get; set; } = false; protected void toggleDisplay() { showSection = !showSection; } protected string caretIcon { get => showSection ? "bi bi-caret-up-square-fill" : "bi bi-caret-down-square-fill"; } } }