References > " . "Element Reference"; $pagetitle="Deck"; $customsidebar = "elemref-sidebar.php"; include "header.php"; ?>

Deck

An element that displays only one of its children at a time. The selectedIndex attribute determines which child is displayed.

More information about deck

Attributes:

selectedIndex

Properties and Methods:

selectedIndex selectedPanel

Attributes:

selectedIndex

Type: integer

Gets and sets the index of the currently selected panel in the deck. The first item is at index 0.

Inherited from XUL Element:

align allowevents allownegativeassertions class coalesceduplicatearcs
collapsed container containment context contextmenu
datasources debug dir empty equalsize
flags flex height hidden id
insertafter insertbefore left maxheight maxwidth
menu minheight minwidth observes ordinal
orient pack persist popup position
ref removeelement sortDirection sortResource sortResource2
statustext style template tooltip tooltiptext
top uri wait-cursor width

Properties and Methods:

selectedIndex

Type: integer

Gets and sets the index of the currently selected panel in the deck. The first item is at index 0. A non-bubbling select event will be sent to the deck when the selected panel is changed.

selectedPanel

Type: element

Holds a reference to the currently selected panel in the deck. Assign a value to this property to modify the selected panel. A non-bubbling select event will be sent to the deck when the selected panel is changed.

Inherited from XUL Element:

align allowEvents blur boxObject boxObject.element
boxObject.getLookAndFeelMetric boxObject.height boxObject.screenX boxObject.screenY boxObject.width
boxObject.x boxObject.y builder className click
collapsed contextMenu controllers database datasources
dir doCommand flex focus getElementsByAttribute
height hidden id left maxHeight
maxWidth menu minHeight minWidth observes
ordinal orient pack persist ref
resource statusText style tooltip tooltipText
top width

Inherited from Element:

addEventListener
appendChild
attributes
childNodes
cloneNode
dispatchEvent
firstChild
getAttribute
getAttributeNS
getAttributeNode
getAttributeNodeNS
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
insertBefore
isSupported
lastChild
localName
namespaceURI
nextSibling
nodeName
nodeType
nodeValue
normalize
ownerDocument
parentNode
prefix
previousSibling
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
replaceChild
setAttribute
setAttributeNS
setAttributeNode
setAttributeNodeNS
tagName