コード例 #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);
 }
コード例 #2
0
 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();
 }
コード例 #3
0
ファイル: Icon.cs プロジェクト: renhammington/UxFoundation
 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);
 }
コード例 #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);
 }
コード例 #5
0
ファイル: Icon.cs プロジェクト: renhammington/UxFoundation
 public Icon SetPopover(Popover popover)
 {
     Popover = popover;
     return this;
 }
コード例 #6
0
 public LinkButton SetPopover(Popover popover)
 {
     Popover = popover;
     return this;
 }
コード例 #7
0
ファイル: UxIcon.cs プロジェクト: renhammington/UxFoundation
 /// <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);
 }