Beispiel #1
0
 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);
 }
Beispiel #2
0
 public Icon SetSize(IconSize size)
 {
     Size = size ?? IconSize.Default;
     return this;
 }
Beispiel #3
0
 /// <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);
 }