Beispiel #1
0
        /// <summary>
        /// {summary}
        /// </summary>
        /// <param name="elementId">Sets the id attribute of the rendered element.</param>
        /// <param name="icon">Applies an icon from the icon set.</param>,
        /// <param name="iconpos">Positions the icon in the anchor. Possible values: left, right, top, bottom, none, notext. The notext value will display an icon-only button with no text feedback.</param>,
        /// <param name="ajax">Use ajax to retrieve this link.</param>,
        /// <param name="direction">Reverse page transition animation.</param>,
        /// <param name="domCache">Apply dom-cache.</param>,
        /// <param name="inline">Inline link.</param>,
        /// <param name="prefetch">When using single-page templates, you can prefetch pages into the DOM so that they're available instantly when the user visits them.</param>,
        /// <param name="rel">How the link should behave, Back, Dialog, External, or Popup.</param>,
        /// <param name="transition">By default, the dialog will open with a 'pop' transition.</param>,
        /// <param name="mini">Compact sized version</param>,
        /// <param name="theme">Defines the theme swatch letter (a-z)</param>
        /// <returns>AnchorWidget</returns>
        public AnchorWidget Anchor(String elementId = "", String href = "", MobileIcon?icon = null, MobileIconPosition?iconpos = null, Boolean ajax = true, MobileDirection?direction = null, Boolean domCache = false, Boolean inline = false, Boolean prefetch = false, MobileRel?rel = null, MobileTransition?transition = null, Boolean mini = false, String theme = null)
        {
            var widget = new AnchorWidget(_helper);

            widget.SetCoreOptions(elementId, null);
            widget.Options(href, icon, iconpos, ajax, direction, domCache, inline, prefetch, rel, transition, mini, theme);

            return(widget);
        }
Beispiel #2
0
 /// <summary>
 /// Extends an AnchorWidget with DialogWidget options.
 /// </summary>
 /// <param name="closeBtnText">Customizes the text of the close button which is helpful for translating this into different languages.</param>,
 /// <param name="domCache">Apply dom-cache.</param>,
 /// <param name="fullscreen">Show dialog in fullscreen.</param>,
 /// <param name="overlayTheme">Overlay theme when the page is opened in a dialog.</param>,
 /// <param name="title">Title used when page is shown.</param>,
 /// <param name="transition">By default, the dialog will open with a 'pop' transition.</param>,
 /// <param name="mini">Compact sized version</param>,
 /// <param name="theme">Defines the theme swatch letter (a-z)</param>
 /// <returns>DialogWidget</returns>
 public static AnchorWidget DialogOptions(this AnchorWidget widget, String closeBtnText = "Close", Boolean domCache = false, Boolean fullscreen = false, String overlayTheme = null, String title = "", MobileTransition?transition = null, Boolean mini = false, String theme = null)
 {
     widget.SetOptions(
         JuiceHelpers.GetMemberInfo(() => closeBtnText),
         JuiceHelpers.GetMemberInfo(() => domCache),
         JuiceHelpers.GetMemberInfo(() => fullscreen),
         JuiceHelpers.GetMemberInfo(() => overlayTheme),
         JuiceHelpers.GetMemberInfo(() => title),
         JuiceHelpers.GetMemberInfo(() => transition),
         JuiceHelpers.GetMemberInfo(() => mini),
         JuiceHelpers.GetMemberInfo(() => theme)
         );
     return(widget);
 }