mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 22:32:56 +00:00
Add MaxHeight and ExpandedChanged parameters to expansion panel
This commit is contained in:
parent
0a4bb85e77
commit
53a3d0544c
@ -1,4 +1,4 @@
|
||||
<MudExpansionPanel Class="border-solid border rounded-lg" Expanded="@this.IsExpanded">
|
||||
<MudExpansionPanel Class="border-solid border rounded-lg" Expanded="@this.IsExpanded" MaxHeight="@this.MaxHeight" ExpandedChanged="async s => await this.ExpandedChanged(s)">
|
||||
<TitleContent>
|
||||
<div class="d-flex align-center">
|
||||
<MudIcon Icon="@this.HeaderIcon" Size="@this.IconSize" Color="@this.IconColor" class="mr-3"/>
|
||||
|
@ -16,6 +16,12 @@ public partial class ExpansionPanel : ComponentBase
|
||||
[Parameter]
|
||||
public string HeaderText { get; set; } = "n/a";
|
||||
|
||||
[Parameter]
|
||||
public int? MaxHeight { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public Func<bool, Task> ExpandedChanged { get; set; } = _ => Task.CompletedTask;
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user