diff --git a/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/DateWheelPicker/Examples/DateWheelPickerExample1.razor b/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/DateWheelPicker/Examples/DateWheelPickerExample1.razor index e4e7892a..d14d50af 100644 --- a/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/DateWheelPicker/Examples/DateWheelPickerExample1.razor +++ b/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/DateWheelPicker/Examples/DateWheelPickerExample1.razor @@ -3,9 +3,10 @@ - + @@ -20,6 +21,7 @@ + @foreach (Color item in Enum.GetValues()) { @@ -62,4 +64,5 @@ bool _fixHour; bool _fixMinute; bool _fixSecond; + bool _isAdornmentEnd = true; } diff --git a/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor b/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor index 19ff3ace..bf79ab99 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor +++ b/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor @@ -11,7 +11,7 @@ TextUpdateSuppression="false" Value="@(Text)" Underline="@Underline" Disabled="@Disabled" ReadOnly="!Editable" Error="@Error" ErrorId="@ErrorId" - OnAdornmentClick="HandleAdornmentClick" AdornmentIcon="@_currentIcon" Adornment="Adornment.End" + OnAdornmentClick="HandleAdornmentClick" AdornmentIcon="@InputAdornmentIcon" Adornment="@InputAdornment" AdornmentColor="@AdornmentColor" IconSize="@IconSize" OnBlur="HandleOnBlur" Clearable="@Clearable" OnClearButtonClick="HandleClearButtonClick" @attributes="UserAttributes" /> diff --git a/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs index 724453b8..8b52d852 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs +++ b/CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs @@ -235,7 +235,20 @@ protected override void OnInitialized() public int MaxHeight { get; set; } = 300; internal bool _isOpen; - internal string _currentIcon { get; set; } = Icons.Material.Filled.CalendarMonth; + + /// + /// The icon displayed as adornment in input. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.ListAppearance)] + public string? InputAdornmentIcon { get; set; } = Icons.Material.Filled.CalendarMonth; + + /// + /// The adornment position in input. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.ListAppearance)] + public Adornment InputAdornment { get; set; } = Adornment.End; /// /// Sets the anchor origin point for the popover.