Skip to content

Commit

Permalink
made size for DropdownToggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
steal4life committed Sep 21, 2023
1 parent 8d3320e commit 5173fb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
ValueField="@((item) => item.Iso)"
@bind-SelectedValue="@selectedDropValue"
Color="Color.Primary"
MaxMenuHeight="200px">
MaxMenuHeight="200px"
Size="Size.Large">
Select item
</DropdownList>
</FieldBody>
Expand Down
2 changes: 1 addition & 1 deletion Source/Extensions/Blazorise.Components/DropdownList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@typeparam TItem
@typeparam TValue
<Dropdown @ref="@dropdownRef" ElementId="@ElementId" Class="@Class" Style="@Style" RightAligned="@RightAligned" Disabled="@Disabled" Direction="@Direction" Attributes="@Attributes">
<DropdownToggle @ref="@dropdownToggleRef" Color="@Color" TabIndex="@TabIndex">@ChildContent</DropdownToggle>
<DropdownToggle Size="@Size" @ref="@dropdownToggleRef" Color="@Color" TabIndex="@TabIndex">@ChildContent</DropdownToggle>
<DropdownMenu MaxMenuHeight="@MaxMenuHeight">
@if ( Data != null )
{
Expand Down
5 changes: 5 additions & 0 deletions Source/Extensions/Blazorise.Components/DropdownList.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ protected bool IsSelected( TValue value )
/// </summary>
[Parameter] public Color Color { get; set; }

/// <summary>
/// Defines the size of toggle button.
/// </summary>
[Parameter] public Size Size { get; set; }

/// <summary>
/// If true, a dropdown menu will be right aligned.
/// </summary>
Expand Down

0 comments on commit 5173fb7

Please sign in to comment.