Example #1
0
        public static Section JQM_Section(this HtmlHelper htmlHelper, SectionConfig config)
        {
            TagBuilder tag = new TagBuilder("div");

            config.SetAttributes(tag);
            return(new Section(htmlHelper.ViewContext, tag));
        }
Example #2
0
        public static Section JQM_Main(this HtmlHelper htmlHelper, string name)
        {
            SectionConfig config = new SectionConfig(name, Enums.ContainerType.Main)
            {
                ClassName = "ui-content"
            };

            return(JQM_Section(htmlHelper, config));
        }
Example #3
0
        public static Section JQM_Footer(this HtmlHelper htmlHelper, string name, bool isFixed = false, bool isFullScreen = false)
        {
            SectionConfig config = new SectionConfig(name, Enums.ContainerType.Footer)
            {
                IsFixed = isFixed, IsFullScreen = isFullScreen
            };

            return(JQM_Section(htmlHelper, config));
        }
Example #4
0
        public static Section JQM_Header(this HtmlHelper htmlHelper, string name, bool isFixed = false, bool isFullScreen = false, bool createBackButton = false, string backButtonText = null)
        {
            SectionConfig config = new SectionConfig(name, Enums.ContainerType.Header)
            {
                IsFixed = isFixed, IsFullScreen = isFullScreen, CreateBackButton = createBackButton, BackButtonText = backButtonText
            };

            return(JQM_Section(htmlHelper, config));
        }
Example #5
0
        public static Section JQM_NavBar(this HtmlHelper htmlHelper, string name = null)
        {
            SectionConfig config = new SectionConfig(name, Enums.ContainerType.NavBar);

            return(JQM_Section(htmlHelper, config));
        }