C# Class Open.Core.Controls.HtmlPrimitive.HtmlList

Renders an
    or
      .
      Inheritance: ViewBase, IHtmlList
      Show file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

      Public Methods

      Method Description
      Add ( string text ) : jQueryObject

      Adds a new list item

    1. .

      AddElement ( jQueryObject element ) : jQueryObject

      Adds a new element within an

    2. item.

      Clear ( ) : void

      Removes all child LI items.

      HtmlList ( HtmlListType listType, string cssClass ) : System

      Constructor.

      Remove ( int index ) : void

      Removes the item at the given index.

      this ( int index ) : jQueryObject

      Gets the list-item at the given index.

      Private Methods

      Method Description
      HtmlList ( ) : System
      InitHtml ( HtmlListType listType ) : jQueryObject

      Method Details

      Add() public method

      Adds a new list item
    3. .
      public Add ( string text ) : jQueryObject
      text string The text to insert within the element.
      return jQueryObject

      AddElement() public method

      Adds a new element within an
    4. item.
      public AddElement ( jQueryObject element ) : jQueryObject
      element jQueryObject The element to add (within the LI).
      return jQueryObject

      Clear() public method

      Removes all child LI items.
      public Clear ( ) : void
      return void

      HtmlList() public method

      Constructor.
      public HtmlList ( HtmlListType listType, string cssClass ) : System
      listType HtmlListType The type of list to construct.
      cssClass string The CSS class attribute to add to the root list element (can be multiple classes).
      return System

      Remove() public method

      Removes the item at the given index.
      public Remove ( int index ) : void
      index int The index to remove.
      return void

      this() public method

      Gets the list-item at the given index.
      public this ( int index ) : jQueryObject
      index int
      return jQueryObject