public BootstrapBeginButtonGroup(HtmlHelper html, ButtonGroupType type)
 {
     this.html = html;
     TagBuilder div = new TagBuilder("div");
     if (type == ButtonGroupType.Vertical) div.AddCssClass("btn-group-vertical");
     if (type == ButtonGroupType.DropUp) div.AddCssClass("dropup");
     div.AddCssClass("btn-group");
     html.ViewContext.Writer.Write(div.ToString(TagRenderMode.StartTag));
 }
Example #2
0
        public BootstrapBeginButtonGroup(HtmlHelper html, ButtonGroupType type)
        {
            this.html = html;
            TagBuilder div = new TagBuilder("div");

            if (type == ButtonGroupType.Vertical)
            {
                div.AddCssClass("btn-group-vertical");
            }
            if (type == ButtonGroupType.DropUp)
            {
                div.AddCssClass("dropup");
            }
            div.AddCssClass("btn-group");
            html.ViewContext.Writer.Write(div.ToString(TagRenderMode.StartTag));
        }
 public BootstrapBeginButtonGroup ButtonGroup(ButtonGroupType type)
 {
     return new BootstrapBeginButtonGroup(html, type);
 }
 public BootstrapBeginButtonGroup ButtonGroup(ButtonGroupType type)
 {
     return(new BootstrapBeginButtonGroup(html, type));
 }