public virtual string ToHtmlString() { TagBuilder i = new TagBuilder("i"); var attrs = _htmlAttributes.FormatHtmlAttributes() ?? new Dictionary <string, object>(); if (_tooltipConfiguration != null) { attrs.MergeHtmlAttributes(_tooltipConfiguration.ToDictionary()); } if (_tooltip != null) { attrs.MergeHtmlAttributes(_tooltip.ToDictionary()); } if (_popoverConfiguration != null) { attrs.MergeHtmlAttributes(_popoverConfiguration.ToDictionary()); } if (_popover != null) { attrs.MergeHtmlAttributes(_popover.ToDictionary()); } i.MergeAttributes(attrs, true); if (_icon != String.Empty) { i.AddCssClass(_icon); } if (_isWhite) { i.AddCssClass("white"); } return(i.ToString(TagRenderMode.Normal)); }
public virtual string ToHtmlString() { TagBuilder i = new TagBuilder("i"); var attrs = _htmlAttributes.FormatHtmlAttributes() ?? new Dictionary <string, object>(); if (_tooltipConfiguration != null) { attrs.MergeHtmlAttributes(_tooltipConfiguration.ToDictionary()); } if (_popoverConfiguration != null) { attrs.MergeHtmlAttributes(_popoverConfiguration.ToDictionary()); } i.MergeAttributes(attrs, true); if (_icon != Icons._not_set) { i.AddCssClass(_icon.GetEnumDescription()); } if (!string.IsNullOrEmpty(_iconCustomClass)) { i.AddCssClass(_iconCustomClass); } if (_isWhite) { i.AddCssClass("icon-white"); } return(i.ToString(TagRenderMode.Normal)); }