public override string ToHtml() { string color = "text-"; if (this.color == NavColor.Red) { color += "red"; } else if (this.color == NavColor.Yellow) { color += "yellow"; } else if (this.color == NavColor.Blue) { color += "aqua"; } return("<li><a href=\"#\"><i class=\"fa fa-circle-o " + color + "\"></i><span>" + text + "</span></a></li>"); }
public NavLabel(string text, string controller, string action, NavColor color) : base(text, controller, action) { this.color = color; }
public NavMenuItem AddNotification(string message, NavColor color) { notifications.Add(new Tuple <string, NavColor>(message, color)); return(this); }