Exemplo n.º 1
0
        public static IGridSectionColumnSyntax AddFullWidthRow(this IGridSectionSyntax stx,
                                                               IDictionary <string, string> config = null, IDictionary <string, string> styles = null)
        {
            var row = stx.AddRow("full width");

            if (config != null)
            {
                row = row.WithConfig(config);
            }

            if (styles != null)
            {
                row = row.WithStyles(styles);
            }

            return(row.WithColumns(1));
        }
Exemplo n.º 2
0
        public static IGridSectionColumnSyntax AddEightToFourRow(this IGridSectionSyntax stx,
                                                                 IDictionary <string, string> config = null, IDictionary <string, string> styles = null)
        {
            var row = stx.AddRow("8-4");

            if (config != null)
            {
                row = row.WithConfig(config);
            }

            if (styles != null)
            {
                row = row.WithStyles(styles);
            }

            return(row.WithColumns(2));
        }
Exemplo n.º 3
0
        public static IGridSectionColumnSyntax AddQuarteredRow(this IGridSectionSyntax stx,
                                                               IDictionary <string, string> config = null, IDictionary <string, string> styles = null)
        {
            var row = stx.AddRow("3-3-3-3");

            if (config != null)
            {
                row = row.WithConfig(config);
            }

            if (styles != null)
            {
                row = row.WithStyles(styles);
            }

            return(row.WithColumns(4));
        }