2024-06-01 18:48:24 +00:00
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
2024-08-21 06:30:01 +00:00
|
|
|
namespace AIStudio.Components;
|
2024-06-01 18:48:24 +00:00
|
|
|
|
|
|
|
public partial class ExpansionPanel : ComponentBase
|
|
|
|
{
|
|
|
|
[Parameter]
|
|
|
|
public string HeaderIcon { get; set; } = Icons.Material.Filled.BugReport;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public Size IconSize { get; set; } = Size.Medium;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public Color IconColor { get; set; } = Color.Primary;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public string HeaderText { get; set; } = "n/a";
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public RenderFragment? ChildContent { get; set; }
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public bool IsExpanded { get; set; }
|
2024-08-23 09:23:36 +00:00
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public bool ShowEndButton { get; set; }
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public Func<ValueTask> EndButtonClickAsync { get; set; } = () => ValueTask.CompletedTask;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public string EndButtonIcon { get; set; } = Icons.Material.Filled.Delete;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public Color EndButtonColor { get; set; } = Color.Error;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public string EndButtonTooltip { get; set; } = string.Empty;
|
2024-06-01 18:48:24 +00:00
|
|
|
}
|