/// <summary> /// 设置标记示例。 /// </summary> /// <param name="text">标记显示字符串。</param> /// <param name="color">标记颜色。</param> /// <returns>返回当前项目实例。</returns> public MenuItem Badged(string text, BadgeColor color = AdminMenus.BadgeColor.Blue) { BadgeText = text; BadgeColor = "element-bg-color-" + color.ToString().ToLower(); return(this); }
public static string FormatColor(BadgeColor color) { return((int)color < MinWithoutLeadingZero ? "0" + (int)color : ((int)color).ToString()); }
public BadgeSymbol(SymbolType type, BadgeColor color, BadgePosition position) { Type = type; Color = color; Position = position; }
public BadgeBase(BaseType type, BadgeColor color, BadgePosition position = BadgePosition.UpperLeft) { Type = type; Color = color; Position = position; }
/// <summary>Constructor for CheerBadge</summary> public CheerBadge(int cheerAmount) { CheerAmount = cheerAmount; Color = getColor(cheerAmount); }