mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04:12: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>
|
<TitleContent>
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<MudIcon Icon="@this.HeaderIcon" Size="@this.IconSize" Color="@this.IconColor" class="mr-3"/>
|
<MudIcon Icon="@this.HeaderIcon" Size="@this.IconSize" Color="@this.IconColor" class="mr-3"/>
|
||||||
|
@ -16,6 +16,12 @@ public partial class ExpansionPanel : ComponentBase
|
|||||||
[Parameter]
|
[Parameter]
|
||||||
public string HeaderText { get; set; } = "n/a";
|
public string HeaderText { get; set; } = "n/a";
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public int? MaxHeight { get; set; }
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public Func<bool, Task> ExpandedChanged { get; set; } = _ => Task.CompletedTask;
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public RenderFragment? ChildContent { get; set; }
|
public RenderFragment? ChildContent { get; set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user