public BootStrapDropdownButton(HtmlHelper Helper, BootStrapButtonSettings Button, bool Split)
     : base(Helper)
 {
     _obButton = Button;
     _blSplit = Split;
     base.Start();
 }
 public static MvcHtmlString Render(BootStrapButtonSettings Settings)
 {
     return Render(Settings.Type, Settings.Size, Settings.Tag, Settings.Block, Settings.Disabled, Settings.InnerText, Settings.HtmlAttributes, Settings.AdditionalClasses);
 }
 public BootStrapDropdownButton ButtonDropdown(BootStrapButtonSettings Button, bool Split)
 {
     return new BootStrapDropdownButton(_htmlHelper, Button, Split);
 }
 public BootStrapDropdownButton ButtonDropdown(BootStrapButtonSettings Button)
 {
     return new BootStrapDropdownButton(_htmlHelper, Button, false);
 }
 public ButtonGroupTemplate(bool Vertical, BootStrapButtonSettings[] Buttons)
 {
     _lsButtons = new List<BootStrapButtonSettings>(Buttons);
     this.Vertical = Vertical;
 }
        private void StartSplit()
        {
            string buttonHtml = BootStrapButton.Render(_obButton).ToHtmlString();

            BootStrapButtonSettings splitSettings = new BootStrapButtonSettings()
            {
                AdditionalClasses = new List<string>() { "dropdown-toggle" },
                HtmlAttributes = new Dictionary<string, string>() { {"data-toggle", "dropdown"}},
                InnerText = "<span class=\"caret\"></span>",
                Size = _obButton.Size,
                Tag = _obButton.Tag,
                Type = _obButton.Type
            };
            string splitHtml = BootStrapButton.Render(splitSettings).ToHtmlString();
            base.WriteToBuffer("<div class=\"btn-group\">" + buttonHtml + "" + splitHtml +"<ul class=\"dropdown-menu\">");
        }
 public BootStrapDropdownButton(HtmlHelper Helper, BootStrapButtonSettings Button)
     : this(Helper, Button, false)
 {
 }