XUL:deck
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
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
[edit] 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>
[edit] 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 |
[edit] 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
-1to this property, all items will be deselected.
- 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 from XUL element Inherited from DOM element |
[edit] Methods
|
Inherited from XUL element Inherited from DOM element |