public Icon(IconType iconType, IconSize size = null, IconRotation rotation = null, bool borderVisible = false, bool spin = false, bool pullRight = false, bool listItem = false, Popover popover = null, bool fixedWidth = false, string clientId = null) : base("_Icon", clientId) { SetBorderVisible(borderVisible) .SetSize(size) .SetRotation(rotation) .SetType(iconType) .SetSpin(spin) .SetPullRight(pullRight) .SetListItem(listItem) .SetPopover(popover) .SetFixedWidth(fixedWidth); }
public Icon SetSize(IconSize size) { Size = size ?? IconSize.Default; return this; }
/// <summary> /// Generates an icon using the specified CssClass. Refer to http://fontawesome.io for a list of icons /// </summary> /// <param name="helper"></param> /// <param name="cssClass">Font Awesome icon class</param> /// <returns></returns> public static MvcHtmlString UxIcon(this HtmlHelper helper, IconType iconType, IconSize size = null, IconRotation rotation = null, bool borderVisible = false, bool spin = false, bool pullRight = false, bool listItem = false, Popover popover = null, bool fixedWidth = false, string clientId = null) { var icon = new Icon(iconType, size, rotation, borderVisible, spin, pullRight, listItem, popover, fixedWidth, clientId); return UxIcon(helper, icon); }