Skip to content

Commit

Permalink
Expose Visible and IFormFieldContext on IRadzenFormComponent (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
pianomanjh authored Jan 23, 2025
1 parent 274d642 commit 03b7968
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Radzen.Blazor.Tests/NumericRangeValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public ValueTask FocusAsync()
}

public bool Disabled { get; set; }
public bool Visible { get; set; }
public IFormFieldContext FormFieldContext => null;

public object Value { get; set; }
}
Expand Down
10 changes: 10 additions & 0 deletions Radzen.Blazor/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3416,6 +3416,16 @@ public interface IRadzenFormComponent
/// Sets the Disabled state of the component
/// </summary>
bool Disabled { get; set; }

/// <summary>
/// Sets the Visible state of the component
/// </summary>
bool Visible { get; set; }

/// <summary>
/// Sets the FormFieldContext of the component
/// </summary>
IFormFieldContext FormFieldContext { get; }
}

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions Radzen.Blazor/RadzenDatePicker.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ private string ButtonClasses
[Parameter]
public bool Disabled { get; set; }

public IFormFieldContext FormFieldContext { get; set; } = null;

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

Check warning on line 753 in Radzen.Blazor/RadzenDatePicker.razor.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'RadzenDatePicker<TValue>.FormFieldContext'

/// <summary>
/// Gets or sets a value indicating whether days part is shown.
/// </summary>
Expand Down

0 comments on commit 03b7968

Please sign in to comment.