Show:

Widget extension, which can be used to add toggle visibility support to the base Widget class, through the Base.build method.

Constructor

Methods

_afterUiSetVisible

(
  • val
)
protected

Fire after boundingBox style changes.

Parameters:

  • val Object

_clearHideTimer

() protected

Helper method called to clear the close timer.

_maybeHide

() protected

Maybe hides if stickDuration do not prevent.

_maybeShow

() protected

Maybe shows if stickDuration do not prevent.

_onStickDurationChange

() protected

Set delay:hide to stickDuration value.

_prepareTransition

(
  • visible
)
protected

Prepare the widget to be animated.

Parameters:

  • visible Boolean

    <p>When <code>true</code>, fade in the element, otherwise fades out.</p>

_setDelay

(
  • val
)
protected

Set the delay attribute.

Parameters:

  • val Object | Number

    <p>Delay value</p>

_transition

(
  • visible
)
protected

Shows or hides depending on the passed parameter, when no parameter is specified the default behavior is to hide the element.

Parameters:

  • visible Boolean

    <p>When <code>true</code>, fade in the element, otherwise fades out.</p>

destructor

() protected

Destructor lifecycle implementation for the A.WidgetTransition class.

initializer

() protected

Construction logic executed during A.WidgetTransition instantiation. Lifecycle.

Properties

_hideTimer

Object protected

Stores the Y.later context object.

ATTRS

Object static

Static property used to define the default attribute configuration.

Attributes

animated

Boolean

Determine if the transitions will animate or not.

Default: false

delay

Object

Determine the delay (in milliseconds) after widget's transition animation. By default there's no delay. Can pass as parameter a object {show: value, hide: value} or a single value 'Number'.

Default: { show: 0, hide: 0 }

duration

Number

Determine the duration of the transition.

Default: 0.15

opacity

Number

Determine the opacity.

Default: 1

stickDuration

Number deprecated

Defined in alloy-ui/src/aui-widget/js/aui-widget-transition.js:89

Deprecated: As of 2.0.0 replaced by attribute `delay`.

Determine the duration (in milliseconds) for the widget to stick visibility after the trigger element. By default the stick duration is not specified.