protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (Color != null) { builder.AddAttribute(nameof(Color), AttributeHelper.ColorToString(Color.Value)); } if (Offset != null) { builder.AddAttribute(nameof(Offset), AttributeHelper.SingleToString(Offset.Value)); } RenderAdditionalAttributes(builder); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (HasShadow != null) { builder.AddAttribute(nameof(HasShadow), HasShadow.Value); } if (BorderColor != null) { builder.AddAttribute(nameof(BorderColor), AttributeHelper.ColorToString(BorderColor.Value)); } if (CornerRadius != null) { builder.AddAttribute(nameof(CornerRadius), AttributeHelper.SingleToString(CornerRadius.Value)); } }