Base class for container widgets
Type | Description | |
_styleAttr | Object |
when you want to set style for other node. you can do this by example...
_styleAttr:{
|
childs | ContentPane[] |
Contentpane for each pane in order from top to bottom. |
tabs | Object[] |
Title of each pane in order from top to bottom. |
Return type | Description | |
__baseClassInherit(constructor) | None |
get className from superclass. |
addChild(titlecontent) | ContentPane |
Add title and content of a child. |
addChild(contentPane) | ContentPane |
Add a specified child. |
disableChild(index) | None |
Disable a specified child. |
enableChild(index) | None |
Enable a specified child. |
hide(elem?) | None | Hide a specified element. The hidden element will not be displayed at all. |
isVisible(elem?) | Boolean | Return true if the element is visible, otherwise false. |
removeChild(index) | None |
Remove a specified child. |
selectChild(index) | Boolean |
Select a specified child. |
show(elem?) | None | Display a specified element. |
toggle(elem?) | None | Toggle visibility of a specified element. |
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: {}
get className from superclass.
<Object>
constructor
|
Required |
|
Add a specified child.
<ContentPane>
contentPane
|
Required |
Contentpane object to be input as a child node. |
Disable a specified child.
<Number>
index
|
Required |
Index of the child. |
Enable a specified child.
<Number>
index
|
Required |
Index of the child. |
<Node>
elem
|
Optional |
Specified element to be hidden.
|
<Node>
elem
|
Optional |
Specified element to be checked. If not specified, domNode of the widget is used instead.
|
Remove a specified child.
<Number>
index
|
Required |
Index of the child. |
Select a specified child.
<Number>
index
|
Required |
Index of the child. |
<Node>
elem
|
Optional |
Specified element to be displayed.
|
<Node>
elem
|
Optional |
Specified element to toggle visibility.
|