Exemple #1
0
        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>");
        }
Exemple #2
0
 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);
 }