예제 #1
0
 // GET RID OF THIS WHEN POSSIBLE
 /// <summary>
 /// Constructs a list item to be added to a list
 /// </summary>
 /// <param name="label">The text to be displayed within the LI tags</param>
 public NavItem(string label = "NAVITEM", string url = "#") : base()
 {
     this.className = "NAVITEM";
     this.label     = label;
     this.attributes.Add("href", url);
     this.anchor = new ANCHOR(this, label);
 }
예제 #2
0
 /// <summary>
 /// Constructs a list item to be added to a list
 /// </summary>
 /// <param name="label">The text to be displayed within the LI tags</param>
 public NavItem(FormPost formPost) : base(formPost)
 {
     this.className = "NAVITEM";
     this.label     = "NAVITEM";
     this.attributes.Add("href", "#");
     this.anchor = new ANCHOR(this, "NAVITEM");
 }