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(); }
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 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); }
public Icon SetPopover(Popover popover) { Popover = popover; return this; }
public LinkButton SetPopover(Popover popover) { Popover = popover; 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); }