From 5173fb7f01e2f2493f5a187261abd1aed6c99283 Mon Sep 17 00:00:00 2001 From: steal4life Date: Thu, 21 Sep 2023 11:35:39 +0200 Subject: [PATCH] made size for DropdownToggle button --- Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor | 3 ++- Source/Extensions/Blazorise.Components/DropdownList.razor | 2 +- Source/Extensions/Blazorise.Components/DropdownList.razor.cs | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor b/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor index 4b3cee58c9..0212b998ab 100644 --- a/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor +++ b/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor @@ -17,7 +17,8 @@ ValueField="@((item) => item.Iso)" @bind-SelectedValue="@selectedDropValue" Color="Color.Primary" - MaxMenuHeight="200px"> + MaxMenuHeight="200px" + Size="Size.Large"> Select item diff --git a/Source/Extensions/Blazorise.Components/DropdownList.razor b/Source/Extensions/Blazorise.Components/DropdownList.razor index f97a318a9e..335ac02ac6 100644 --- a/Source/Extensions/Blazorise.Components/DropdownList.razor +++ b/Source/Extensions/Blazorise.Components/DropdownList.razor @@ -2,7 +2,7 @@ @typeparam TItem @typeparam TValue - @ChildContent + @ChildContent @if ( Data != null ) { diff --git a/Source/Extensions/Blazorise.Components/DropdownList.razor.cs b/Source/Extensions/Blazorise.Components/DropdownList.razor.cs index 50f4f5ec39..3c9d42dc38 100644 --- a/Source/Extensions/Blazorise.Components/DropdownList.razor.cs +++ b/Source/Extensions/Blazorise.Components/DropdownList.razor.cs @@ -88,6 +88,11 @@ protected bool IsSelected( TValue value ) /// [Parameter] public Color Color { get; set; } + /// + /// Defines the size of toggle button. + /// + [Parameter] public Size Size { get; set; } + /// /// If true, a dropdown menu will be right aligned. ///