Class: VisibilityManager

qui.utils.VisibilityManager(element, visibleDisplayopt, hiddenDisplayopt, visibleClassopt, nullable, hiddenClassopt, nullable, widthTransitionopt, heightTransitionopt, transitionDurationopt)

A class that resolves the problem of waiting an async iteration before applying styles with transitions, after changing the display style property.

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 "none"

visibleClass String <optional>
<nullable>

the class(es) to add to element when it's visible; defaults to "visible"

hiddenClass String <optional>
<nullable>

the class(es) to add to element when it's hidden; defaults to "hidden"

widthTransition Boolean <optional>

set to true if width should be transitioned while hiding/showing

heightTransition Boolean <optional>

set to true if height should be transitioned while hiding/showing

transitionDuration Number <optional>

the duration of the transition, in milliseconds; defaults to qui.theme.getTransitionDuration()

Source:

Methods

hideElement()

Hide element.

Source:

isElementVisible() → {Boolean}

Tell if element is visible or not.

Source:
Returns:
Type
Boolean

showElement()

Show element.

Source: