Skip to content

Commit

Permalink
Date/Time Pickers: Add DisableUnderline param like in MudTextField (M…
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOstertag authored Jul 19, 2023
1 parent bef5aa2 commit cdb3720
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/MudBlazor/Components/Picker/MudPicker.razor
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Variant="@Variant"
ReadOnly="@(!Editable || GetReadOnlyState())"
Disabled="@GetDisabledState()"
DisableUnderLine="@DisableUnderLine"
OnAdornmentClick="ToggleState"
Adornment="@Adornment"
AdornmentIcon="@AdornmentIcon"
Expand Down
9 changes: 7 additions & 2 deletions src/MudBlazor/Components/Picker/MudPicker.razor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using MudBlazor.Interfaces;
using MudBlazor.Services;
using MudBlazor.Utilities;

Expand Down Expand Up @@ -171,6 +169,13 @@ public string InputIcon
[CascadingParameter(Name = "ParentDisabled")] private bool ParentDisabled { get; set; }
protected bool GetDisabledState() => Disabled || ParentDisabled;

/// <summary>
/// If true, the input will not have an underline.
/// </summary>
[Parameter]
[Category(CategoryTypes.FormComponent.Appearance)]
public bool DisableUnderLine { get; set; }

/// <summary>
/// If true, no date or time can be defined.
/// </summary>
Expand Down

0 comments on commit cdb3720

Please sign in to comment.