_DisplayMixin

(esrith/amos/core/_DisplayMixin)

Private class for a collection of display (visibility) controlling functions.

Return type Description
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.

Methods Detail
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.