Class Exanpe.HideablePanel
Represents an Hideable Panel. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.HideablePanel(id, hideWidth, duration)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
duration of the animation
|
|
state of the panel
|
|
id of the instance
|
Method Attributes | Method Name and Description |
---|---|
Called after hide.
|
|
Called after show.
|
|
Returns the visibility of the panel
|
|
reverse()
Reverse the visibility of the panel
|
Class Detail
Exanpe.HideablePanel(id, hideWidth, duration)
Constructor
- Parameters:
- {String} id
- the id of the main accordion element
- {int} hideWidth
- the width of the hideable panel
- {float} duration
- the speed of hidding animation
Field Detail
duration
duration of the animation
hidden
state of the panel
id
id of the instance
Method Detail
afterHide()
Called after hide.
Does nothing by default, override to define your own action.
afterShow()
Called after show.
Does nothing by default, override to define your own action.
{boolean}
isVisible()
Returns the visibility of the panel
- Returns:
- {boolean} true if the panel is visible, false otherwise
{boolean}
reverse()
Reverse the visibility of the panel
- Returns:
- {boolean} true if the panel gets visible, false if it gets hidden