Constructor
new VisibilityManager(element, visibleDisplayopt, hiddenDisplayopt, visibleClassopt, nullable, hiddenClassopt, nullable, widthTransitionopt, heightTransitionopt, transitionDurationopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
jQuery | the element to be managed |
|
visibleDisplay |
String |
<optional> |
the display style property when element is visible; defaults to |
hiddenDisplay |
String |
<optional> |
the display style property when element is hidden; defaults to |
visibleClass |
String |
<optional> <nullable> |
the class(es) to add to element when it's visible; defaults to |
hiddenClass |
String |
<optional> <nullable> |
the class(es) to add to element when it's hidden; defaults to |
widthTransition |
Boolean |
<optional> |
set to |
heightTransition |
Boolean |
<optional> |
set to |
transitionDuration |
Number |
<optional> |
the duration of the transition, in milliseconds; defaults to
|
- Source:
Methods
hideElement()
Hide element.
- Source:
isElementVisible() → {Boolean}
Tell if element is visible or not.
- Source:
Returns:
- Type
- Boolean
showElement()
Show element.
- Source: