/// <summary> /// Add html addon to the form control /// </summary> /// <param name="html">HTML to be added</param> /// <param name="append">[Optional] Whether to append or prepend the addon</param> /// <returns>The updated form control</returns> public IFormControl <TModel, TValue> AddHtml(IExtendedHtmlStringLegacy html, bool append = true) { Component = Component.AddHtml(html.Component, append); return(this); }
/// <summary> /// Prepends the given HTML element at the beginning of /// the current element /// </summary> /// <param name="element">HTML element to be added</param> public virtual void Prepend(IExtendedHtmlStringLegacy element) { Component.PrependTags.Add(element.Component); }