Beispiel #1
0
        private static BootstrapColumn ColumnHelper(this HtmlHelper htmlHelper, string tagName, IDictionary <string, object> htmlAttributes)
        {
            BootstrapColumn Column = new BootstrapColumn(htmlHelper.ViewContext, htmlAttributes);

            Column.TagName = tagName ?? "div";

            return(Column);
        }
Beispiel #2
0
        public override BootstrapColumn Column(string tagName = "div", IDictionary <string, object> htmlAttributes = null)
        {
            this.Start();
            var column = new BootstrapColumn(_htmlHelper.ViewContext, htmlAttributes ?? new ViewDataDictionary());

            column.TagName      = tagName;
            column.ColumnOffset = NextOffset();
            column.ColumnSize   = NextSize();
            _columns++;
            column.Parent = this;

            return(column);
        }