コード例 #1
0
 public BootStrapDropdownButton(HtmlHelper Helper, BootStrapButtonSettings Button, bool Split)
     : base(Helper)
 {
     _obButton = Button;
     _blSplit = Split;
     base.Start();
 }
コード例 #2
0
 public static MvcHtmlString Render(BootStrapButtonSettings Settings)
 {
     return Render(Settings.Type, Settings.Size, Settings.Tag, Settings.Block, Settings.Disabled, Settings.InnerText, Settings.HtmlAttributes, Settings.AdditionalClasses);
 }
コード例 #3
0
 public BootStrapDropdownButton ButtonDropdown(BootStrapButtonSettings Button, bool Split)
 {
     return new BootStrapDropdownButton(_htmlHelper, Button, Split);
 }
コード例 #4
0
 public BootStrapDropdownButton ButtonDropdown(BootStrapButtonSettings Button)
 {
     return new BootStrapDropdownButton(_htmlHelper, Button, false);
 }
コード例 #5
0
 public ButtonGroupTemplate(bool Vertical, BootStrapButtonSettings[] Buttons)
 {
     _lsButtons = new List<BootStrapButtonSettings>(Buttons);
     this.Vertical = Vertical;
 }
コード例 #6
0
        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\">");
        }
コード例 #7
0
 public BootStrapDropdownButton(HtmlHelper Helper, BootStrapButtonSettings Button)
     : this(Helper, Button, false)
 {
 }