protected override Task OnParametersSetAsync() { if (!_checkedUncontrolled) { _isChecked = Checked.GetValueOrDefault(); } return(base.OnParametersSetAsync()); }
protected override Task OnParametersSetAsync() { ClassNames.Clear() .Add($"{prefixCls}-wrapper") .Add($"{prefixCls}-wrapper-checked", () => Checked.GetValueOrDefault()) .Add($"{prefixCls}-wrapper-disabled", () => disabled) ; return(base.OnParametersSetAsync()); }
protected override Task OnParametersSetAsync() { ClassNames.Clear() .Add(prefixCls) .Add($"{prefixCls}-checked", () => Checked.GetValueOrDefault()) .Add($"{prefixCls}-disabled", () => disabled || loading) .Add($"{prefixCls}-loading", () => loading) .Add($"{prefixCls}-small", () => size.Equals("small")) ; return(base.OnParametersSetAsync()); }