/// <inheritdoc /> protected override void OnParametersSet() { var groupName = !string.IsNullOrEmpty(Name) ? Name : _defaultGroupName; var fieldClass = EditContext.FieldCssClass(FieldIdentifier); var changeEventCallback = EventCallback.Factory.CreateBinder <string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString); _context = new InputRadioContext(CascadedContext, groupName, CurrentValue, fieldClass, changeEventCallback); }
public static bool IsInvalid <TField>(this EditContext editContext, Expression <Func <TField> > accessor) => editContext.FieldCssClass(accessor) == "invalid";