Ejemplo n.º 1
0
 public LinkButton(string text, string url, string target = null, ButtonAppearanceType appearance = null, ButtonSize size = null, IconType icon = null, IconPosition position = null, Popover popover = null, string clientId = null)
     : base("_LinkButton",clientId)
 {
     SetLink(text, url)
         .SetTarget(target)
         .SetAppearance(appearance)
         .SetIcon(icon, position)
         .SetSize(size)
         .SetPopover(popover);
 }
 public static MvcHtmlString UxPopoverAttributes(this HtmlHelper helper,
     string title,
     string content, 
     bool isHtml = false,
     PopoverPlacement placement = PopoverPlacement.Auto,
     PopoverTrigger trigger = PopoverTrigger.Click,
     string container = null)
 {
     var popover = new Popover(title, content, isHtml, placement, trigger, container);
     return popover.ToHtmlString();
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 public static MvcHtmlString UxLinkButton(this HtmlHelper helper, string text, string url, string target = null, ButtonAppearanceType appearance = null, ButtonSize size = null, IconType icon = null, IconPosition iconPosition = null, Popover popover = null, string clientId = null)
 {
     var link = new LinkButton(text, url, target, appearance, size, icon, iconPosition, popover,clientId);
     return helper.RenderUxControl(link);
 }
Ejemplo n.º 5
0
 public Icon SetPopover(Popover popover)
 {
     Popover = popover;
     return this;
 }
Ejemplo n.º 6
0
 public LinkButton SetPopover(Popover popover)
 {
     Popover = popover;
     return this;
 }
Ejemplo n.º 7
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);
 }