UNPKG

apex4x

Version:

The Comprehensive ARIA Development Suite

84 lines (81 loc) 2.92 kB
$A.import(["Animate", "Tooltip"], { defer: true }, function () { var helpTooltipDC = $A.setTooltip("a.aria-tooltip.helpIcon", { id: "helpTooltipId", autoCloseSameWidget: true, isManualOpen: true, className: "tooltip manual-click", delay: 0, style: { display: "none" }, animate: { onRender: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.fadeIn", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, onRemove: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.fadeOut", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, }, }); var constraintTooltipDC = $A.setTooltip('input[type="password"]', { id: "constraintTooltipId", autoCloseSameWidget: true, isFocusOnly: true, className: "tooltip on-focus", delay: 1000, style: { display: "none" }, animate: { onRender: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.swoopIn", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, onRemove: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.swoopOut", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, }, }); var hoverTooltipDC = $A.setTooltip("button.action-btn", { id: "hoverTooltipId", autoCloseSameWidget: true, content: '<div id="hover-tooltip"><p>Wow, look at that!</p></div>', className: "tooltip on-hover", delay: 600, delayTimeout: 3000, style: { display: "none" }, animate: { onRender: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.bounceLeftIn", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, onRemove: function (dc, wrapper, next) { $A.Velocity(wrapper, "transition.bounceRightOut", { complete: function () { // Running next() is required to continue executing built-in lifecycle methods such as afterRender() when the animation completes. next(); }, }); }, }, }); });