Accordion
(esrith/amos/container/Accordion)
This container widget holds a set of panes where every pane's title is visible but only one pane's content is visible at a time. By clicking on another pane title, that particular pane's content become visible while the previously shown pane is closed.
Type |
Description |
_styleAttr
|
Object
|
when you want to set style for other node. you can do this by example...
_styleAttr:{
style-property :effected-node
}
this property was effected where this class was inherited and your widget was called by...
var widget = new YourWidget({
style:{
style-property :style-value
}
});
now effected-node in you widget will have style-property = style-value
|
childs
|
ContentPane[]
|
Contentpane for each pane in order from top to bottom.
|
tabs
|
Object[]
|
Title of each pane in order from top to bottom.
|
|
Description |
change
|
|
Fires when switching between panes.
|
click
|
|
Fires on mouse click on an pane title.
|
new Accordion(params?srcNodeRef?)
Create a new Accordion widget.
<Object>
_styleAttr
when you want to set style for other node. you can do this by example...
_styleAttr:{
style-property
:effected-node
}
this property was effected where this class was inherited and your widget was called by...
var widget = new YourWidget({
style:{
style-property
:style-value
}
});
now effected-node
in you widget will have style-property
= style-value
Default value: {}
<ContentPane[]>
childs
Contentpane for each pane in order from top to bottom.
<Object[]>
tabs
Title of each pane in order from top to bottom.
__baseClassInherit
get className from superclass.
<ContentPane>
addChild
Add a specified child.
-
<ContentPane>
contentPane
|
Required
|
Contentpane object to be input as a child node.
|
disableChild
Disable a specified child.
-
<Number>
index
|
Required
|
Index of the child.
|
enableChild
Enable a specified child.
-
<Number>
index
|
Required
|
Index of the child.
|
hide
Hide a specified element. The hidden element will not be displayed at all.
-
<Node>
elem
|
Optional
|
Specified element to be hidden.
|
<Boolean>
isVisible
Return true if the element is visible, otherwise false.
-
<Node>
elem
|
Optional
|
Specified element to be checked. If not specified, domNode of the widget is used instead.
|
removeChild
Remove a specified child.
-
<Number>
index
|
Required
|
Index of the child.
|
<Boolean>
selectChild
Select a specified child.
-
<Number>
index
|
Required
|
Index of the child.
|
show
Display a specified element.
-
<Node>
elem
|
Optional
|
Specified element to be displayed.
|
toggle
Toggle visibility of a specified element.
-
<Node>
elem
|
Optional
|
Specified element to toggle visibility.
|
change
Fires when switching between panes.
-
<Object>
Number
|
index Index of the pane that is changed to.
|
click
Fires on mouse click on an pane title.
-
<Object>
Number
|
index Index of the clicked pane.
|