Skip to content

Commit 36af482

Browse files
authored
DateWheelPicker PopoverClass (#153)
1 parent 0850fc8 commit 36af482

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
AdornmentColor="@AdornmentColor" IconSize="@IconSize" OnBlur="HandleOnBlur"
1717
Clearable="@Clearable" OnClearButtonClick="HandleClearButtonClick"
1818
@attributes="UserAttributes" />
19-
<MudPopover Class="" Open=@(_isOpen) MaxHeight="@MaxHeight" AnchorOrigin="@AnchorOrigin" TransformOrigin="@TransformOrigin" RelativeWidth="true">
19+
<MudPopover Class="@PopoverClass" Style="@PopoverStyle" Open=@(_isOpen) MaxHeight="@MaxHeight" AnchorOrigin="@AnchorOrigin" TransformOrigin="@TransformOrigin" RelativeWidth="true">
2020
@if (ShowToolbar || SubmitOnClose == false)
2121
{
2222
<div class="d-flex">

CodeBeam.MudBlazor.Extensions/Components/DateWheelPicker/MudDateWheelPicker.razor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ protected override void OnInitialized()
2828
[CascadingParameter(Name = "Standalone")]
2929
internal bool StandaloneEx { get; set; } = true;
3030

31+
[Parameter]
32+
[Category(CategoryTypes.FormComponent.Behavior)]
33+
public string PopoverClass { get; set; }
34+
35+
[Parameter]
36+
[Category(CategoryTypes.FormComponent.Behavior)]
37+
public string PopoverStyle { get; set; }
38+
3139
/// <summary>
3240
/// The date format that determines the text and wheel order. Default is Thread.CurrentThread.CurrentUICulture.DateTimeFormat.ShortDatePattern.
3341
/// </summary>

0 commit comments

Comments
 (0)