public static CssBuilder AddButtonSize(this CssBuilder builder, Func <ButtonSize> valueGetter)
 {
     return(builder.AddEnumValue(Button.DEFAULT_CSS_CLASS, valueGetter, () => valueGetter() != ButtonSize.None));
 }
Beispiel #2
0
 public static CssBuilder AddBadgeType(this CssBuilder builder, Func <BadgeType> valueGetter)
 {
     return(builder.AddEnumValue(Badge.DEFAULT_CSS_CLASS, valueGetter, () => valueGetter() != BadgeType.None));
 }
 public static CssBuilder AddColor(this CssBuilder builder, string prefix, Func <Color> colorGetter, Func <bool> condition = null)
 {
     return(builder.AddEnumValue(prefix, colorGetter, condition ?? (() => colorGetter() != Color.None)));
 }