[scriptable, uuid(bc07c626-4294-43ae-9b0a-e726de0adcad)]
interface nsIDOMXULContainerElement : nsIDOMXULContainerItemElement
Attributes
Returns a count of items in the container.
readonly attribute
unsigned long
itemCount
Methods
Creates an item for the given label and value and appends it to the container. @param aLabel - the label for the new item @param aValue - the value of the new item
nsIDOMXULElement
appendItem(in DOMString aLabel, in DOMString aValue)
Returns the index of an item or -1 if the item is not in the container. @param aItem - the item to determine the index of
long
getIndexOfItem(in nsIDOMXULElement aItem)
Returns the item at a given index or null if the item is not is the container. @param aIndex - the index of the item to return
nsIDOMXULElement
getItemAtIndex(in long aIndex)
Creates an item for the given label and value and inserts it into the container at the specified position. @param aIndex - the index where the new item will be inserted @param aLabel - the label for the new item @param aValue - the value of the new item
nsIDOMXULElement
insertItemAt(in long aIndex, in DOMString aLabel, in DOMString aValue)
Removes an item from the container. @param aIndex - index of the item to remove
nsIDOMXULElement
removeItemAt(in long aIndex)
Compare to: