Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
        /// <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);
        }