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> /// </summary> public static IBtnBuilder Link(this IBtnBuilder builder) { return(builder.Prop("tagName", "a")); }
/// <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 DropDownToggle(this IBtnBuilder builder, bool dropDownToggle = true) { return(builder.Prop("__dropDownToggle", dropDownToggle)); }