/// <summary> /// Append child element to current element. /// </summary> /// <param name="element">Child element to append.</param> /// <returns>Current builder.</returns> public FluentTagBuilder AppendChild(FluentTagBuilder element) { if (element != null) { ChildElementBuilder.AppendLine(element.Render()); } return(this); }
/// <summary> /// Append child element to current element. /// </summary> /// <param name="element">Child element to append.</param> /// <returns>Current builder.</returns> public FluentTagBuilder AppendChild(MvcHtmlString element) { if (element != null) { ChildElementBuilder.AppendLine(element.ToHtmlString()); } return(this); }
/// <summary> /// Append child element to current element. /// </summary> /// <param name="element">Child element to append.</param> /// <returns>Current builder.</returns> public FluentTagBuilder AppendChild(string element) { if (!string.IsNullOrEmpty(element)) { ChildElementBuilder.AppendLine(element); } return(this); }