A.WidgetTransition Class
Widget extension, which can be used to add toggle visibility support to the base Widget class, through the Base.build method.
Constructor
A.WidgetTransition
()
Methods
_afterUiSetVisible
-
val
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
Prepare the widget to be animated.
Parameters:
-
visible
Boolean<p>When <code>true</code>, fade in the element, otherwise fades out.</p>
_setDelay
-
val
Set the delay
attribute.
Parameters:
-
val
Object | Number<p>Delay value</p>
_transition
-
visible
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
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 }
stickDuration
Number
deprecated
Determine the duration (in milliseconds) for the widget to stick visibility after the trigger element. By default the stick duration is not specified.