private static IBtnBuilder SetGlyph(IBtnBuilder builder, string key, string[] glyphs)
 {
     for (int index = 0; index < glyphs.Length; index++)
     {
         glyphs[index] = TwitterBootstrap.Glyph.GlyphPrefix + glyphs[index];
     }
     return(builder.Prop(key, string.Join(" ", glyphs)));
 }
 /// <summary>
 /// Sets the button type="submit"
 /// </summary>
 public static IBtnBuilder Submit(this IBtnBuilder builder)
 {
     return(builder.Attr("type", "submit"));
 }
 /// <summary>
 /// </summary>
 public static IBtnBuilder Style(this IBtnBuilder builder, BtnStyles style)
 {
     return(builder.Prop("__btnStyle", style | builder.Prop <BtnStyles>("__btnStyle")));
 }
 /// <summary>
 /// </summary>
 public static IBtnBuilder RightGlyph(this IBtnBuilder builder, params string[] glyphs)
 {
     return(SetGlyph(builder, "__glyphRight", glyphs));
 }
 /// <summary>
 /// </summary>
 public static IBtnBuilder Link(this IBtnBuilder builder)
 {
     return(builder.Prop("tagName", "a"));
 }
 /// <summary>
 /// </summary>
 public static IBtnBuilder DropDownToggle(this IBtnBuilder builder, bool dropDownToggle = true)
 {
     return(builder.Prop("__dropDownToggle", dropDownToggle));
 }