Content > Element > Object

The Content type is an Element that normally has child elements not specific to the element (ul would not be a Content, div would). Content gains all fields, functions and properties as Element.

Events

OnScroll ScrollEventArgs Fired when the element has scrolled.  

Property Functions

Content(String html) Gets or sets the HTML contained within the element.  
HorizontalScrollPosition(Number pos) Gets or sets the horizontal scroll position.  
Text(String text) Gets or sets the raw text not treated as HTML.  
VerticalScrollPosition(Number pos) Gets or sets the vertical scroll position.  

Functions

AddElement(Element element)   Adds the element as a child.  
AddElement(String text) Adds the text as a text node.  
AddElements(Array elements)   Adds the array of elements and/or text to the node.  
ClearContent()   Clears the element of all content.  
ElementsByClassName(String className) Array Returns all elements containing the class.  
HorizontalScrollToElement(Element element)   Horizontally scrolls the element to the provided child.  
InsertElement(Number index, Element element)   Inserts the element into the index position provided.  
InsertElement(Number index, String text)   Inserts the text node into the index position provided.  
InsertElementAfter(Element element, Element child)   Inserts the element after the child.  
InsertElementAfter(String text, Element child)   Inserts the text node after the child.  
InsertElementBefore(Element element, Element child)   Inserts the element before the child.  
InsertElementBefore(String text, Element child)   Inserts the text node after the child.  
MoveElementsTo(Element newParent)   Moves all children to the new parent.  
RemoveElement(Element element)   Removes the element as a child.  
RemoveElements(Array elements)   Removes the array of elements.  
VerticalScrollToElement(Element element)   Vertically scrolls the element to the provided child.  

Last edited May 30, 2011 at 3:06 PM by dahrkdaiz, version 4

Comments

No comments yet.