Namespace BTM.Effect
HTML/DOM Effects Namespace
Defined in: effect.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
BTM.Effect.hide(element)
Hide an Element or array of Elements
|
| <static> |
BTM.Effect.show(element)
Show an Element or array of Elements
|
| <static> |
BTM.Effect.toggle(element)
Convenience function to toggle an element using BTM.Effect.show and BTM.Effect.hide
|
Method Detail
<static>
{HTMLElement|HTMLElement[]|String[]}
BTM.Effect.hide(element)
Hide an Element or array of Elements
- Parameters:
- {String|HTMLElement|String[]|HTMLElement[]} element
- element ID or reference to element (either single or an array), to be hidden.
- Returns:
- {HTMLElement|HTMLElement[]|String[]} the original array/HTMLElement
<static>
{HTMLElement|HTMLElement[]|String[]}
BTM.Effect.show(element)
Show an Element or array of Elements
- Parameters:
- {String|HTMLElement|String[]|HTMLElement[]} element
- element ID or reference to element (either single or an array), to be shown.
- Returns:
- {HTMLElement|HTMLElement[]|String[]} the original array/HTMLElement
<static>
{HTMLElement|HTMLElement[]|String[]}
BTM.Effect.toggle(element)
Convenience function to toggle an element using BTM.Effect.show and BTM.Effect.hide
- Parameters:
- {String|HTMLElement|String[]|HTMLElement[]} element
- element ID or reference to element (either single or an array), to be toggled. Each element is toggled based on its own current status, so this could make "show" some elements and "hide" others.
- Returns:
- {HTMLElement|HTMLElement[]|String[]} the original array/HTMLElement