コード例 #1
0
 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)));
 }
コード例 #2
0
 /// <summary>
 /// </summary>
 public static IBtnBuilder Link(this IBtnBuilder builder)
 {
     return(builder.Prop("tagName", "a"));
 }
コード例 #3
0
 /// <summary>
 /// </summary>
 public static IBtnBuilder Style(this IBtnBuilder builder, BtnStyles style)
 {
     return(builder.Prop("__btnStyle", style | builder.Prop <BtnStyles>("__btnStyle")));
 }
コード例 #4
0
 /// <summary>
 /// </summary>
 public static IBtnBuilder DropDownToggle(this IBtnBuilder builder, bool dropDownToggle = true)
 {
     return(builder.Prop("__dropDownToggle", dropDownToggle));
 }