An element that displays only one of its children at a time. The selectedIndex
attribute determines which child is displayed.
More information is available in the XUL tutorial.
- Attributes
- selectedIndex
- Properties
- selectedIndex, selectedPanel
Examples
<deck selectedIndex="2"> <description value="This is the first page"/> <button label="This is the second page"/> <box> <description value="This is the third page"/> <button label="This is also the third page"/> </box> </deck>
Attributes
selectedIndex
- Type: integer
- Gets and sets the index of the currently selected panel. The first item is at index 0.
Inherited from XUL element |
Properties
-
selectedIndex
- Type: integer
-
Returns the index of the currently selected item. You may select an item by assigning its index to this property. By assigning
-1
to this property, all items will be deselected. Returns -1 if no items are selected
-
selectedPanel
- Type: element
-
Holds a reference to the currently selected panel within a
deck
element. Assigning a value to this property will modify the selected panel.
Inherited Properties |