diff --git a/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor b/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor index ad1ec88c..c44e2b57 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor +++ b/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor @@ -94,15 +94,20 @@ } } - + - + - + + @if (StaticContent != null && !ShowStaticContentAtEnd) + { + @StaticContent(this) + } + + + @if (StaticContent != null && ShowStaticContentAtEnd) + { + @StaticContent(this) + } diff --git a/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor.cs index c34e6b4a..0924aca5 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor.cs +++ b/CodeBeam.MudBlazor.Extensions/Components/SelectExtended/MudSelectExtended.razor.cs @@ -107,6 +107,20 @@ public MudSelectExtended() [Category(CategoryTypes.FormComponent.ListBehavior)] public RenderFragment? ChildContent { get; set; } + /// + /// Optional additional content to display above the list within the popover. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Appearance)] + public RenderFragment>? StaticContent { get; set; } + + /// + /// Whether to show at the bottom of the popover. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Appearance)] + public bool ShowStaticContentAtEnd { get; set; } + /// /// Optional presentation template for items ///