Skip to content

Commit

Permalink
adds Disabled, from RadzenFormComponent<T>, to the IRadzenFormCompone…
Browse files Browse the repository at this point in the history
…nt interface, for better integration with cross-cutting form behavior (#1903)
  • Loading branch information
pianomanjh authored Jan 13, 2025
1 parent 3910fb7 commit faada7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Radzen.Blazor.Tests/NumericRangeValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public ValueTask FocusAsync()
throw new NotImplementedException();
}

public bool Disabled { get; set; }

public object Value { get; set; }
}

Expand Down Expand Up @@ -169,4 +171,4 @@ public void Returns_False_If_Cannot_Conert_Value()
Assert.False(component.Instance.Validate(DateTime.Now));
}
}
}
}
7 changes: 6 additions & 1 deletion Radzen.Blazor/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3405,6 +3405,11 @@ public interface IRadzenFormComponent
/// Sets the focus.
/// </summary>
ValueTask FocusAsync();

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

/// <summary>
Expand Down Expand Up @@ -3789,4 +3794,4 @@ public enum FrozenColumnPosition
/// </summary>
Right
}
}
}

0 comments on commit faada7a

Please sign in to comment.