A TitlePane is a pane with a title on top that can be opened or collapsed. The visibility of the container is toggled by activating an arrow "button" on the title bar via the mouse or keyboard.
|
dijit.TitlePane
A pane with a title on top, that can be opened or collapsed.
|
||
|
Attributes
|
||
| duration | Integer 250 |
milliseconds to fade in/fade out |
| open | Boolean true |
Whether pane is opened or closed. |
| title | String | Title of the pane. Use setTitle() to change after creation time. |
|
Methods
|
||
| setContent(/* String */content) | Typically called when an href is loaded. Our job is to make the animation smooth | |
| setTitle(/* String */title) | sets the text of the title | |
| toggle() | switches between opened and closed state | |
Each title pane title is included in the tab order of the document.
| Action | Key |
|---|---|
| toggle open/close of the title pane | enter or space key with focus on the title pane title |
| Navigate into an opened title pane | tab |
The title pane container will have an ARIA labelledby property which points to the id of the title pane title. The title pane title has the ARIA role of button and property of haspopup=true to indicate that it controls the display of the pane. The role of button is used to indicate to the user that an action will occur when the button is activated. The tilte pane container will have an ARIA role of region which will be supported in Firefox 3 and identified by future versions of the screen readers.