nsIDOMXULContainerElement

Methods

appendItem(aLabel, aValue)

Creates an item for the given label and value and appends it to the
container.

Parameters

aLabel - the label for the new item
aValue - the value of the new item

insertItemAt(aIndex, aLabel, aValue)

Creates an item for the given label and value and inserts it into the
container at the specified position.

Parameters

aIndex - the index where the new item will be inserted
aLabel - the label for the new item
aValue - the value of the new item

removeItemAt(aIndex)

Removes an item from the container.

Parameters

aIndex - index of the item to remove

getIndexOfItem(aItem)

Returns the index of an item or -1 if the item is not in the container.

Parameters

aItem - the item to determine the index of

getItemAtIndex(aIndex)

Returns the item at a given index or null if the item is not is the
container.

Parameters

aIndex - the index of the item to return

Attributes

itemCount

Returns a count of items in the container.