ContentPane

(esrith/amos/container/ContentPane)

This widget is a container for HTML fragments, Javascript generated markup, a DOMNode reference or a widget.

Description
new ContentPane(params?srcNodeRef?)

Create a new ContentPane widget.

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
content String | DOMNode | Object

Content of the contentpane. This may contain HTML fragments, Javascript generated markup, a DOMNode reference or a widget.

title String

Text for title of element.

Return type Description
__baseClassInherit(constructor) None get className from superclass.
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.
show(elem?) None Display a specified element.
toggle(elem?) None Toggle visibility of a specified element.
Constructors Detail
new ContentPane(params?srcNodeRef?)

Create a new ContentPane widget.

Parameters:
Properties Detail
<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: {}

<String | DOMNode | Object>
content

Content of the contentpane. This may contain HTML fragments, Javascript generated markup, a DOMNode reference or a widget.

Default value: None

<String>
title

Text for title of element.

Default value: None

Methods Detail
__baseClassInherit
(
  • constructor
)
get className from superclass.
Parameters
  • <Object> constructor Required
hide
(
  • elem?
)
Hide a specified element. The hidden element will not be displayed at all.
Parameters
  • <Node> elem Optional
    Specified element to be hidden.
<Boolean>
isVisible
(
  • elem?
)
Return true if the element is visible, otherwise false.
Parameters
  • <Node> elem Optional
    Specified element to be checked. If not specified, domNode of the widget is used instead.
show
(
  • elem?
)
Display a specified element.
Parameters
  • <Node> elem Optional
    Specified element to be displayed.
toggle
(
  • elem?
)
Toggle visibility of a specified element.
Parameters
  • <Node> elem Optional
    Specified element to toggle visibility.