Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @type integer
* @default 150
* @private
*/
@defaultValue
fadeDuration = 150;
/**
* Use CSS transitions?
*
* @property usesTransition
* @type boolean
* @readonly
* @private
*/
@usesTransition('fade')
usesTransition;
/**
* Show the pane
*
* @method show
* @protected
*/
show() {
if (this.get('usesTransition')) {
transitionEnd(this.get('element'), this.get('fadeDuration'))
.then(() => {
if (!this.get('isDestroyed')) {
this.setProperties({
active: true,
showContent: true
* @type number
* @default 150
* @public
*/
@defaultValue
backdropTransitionDuration = 150;
/**
* Use CSS transitions?
*
* @property usesTransition
* @type boolean
* @readonly
* @private
*/
@usesTransition('fade')
usesTransition;
/**
* The DOM element of the `.modal` element.
*
* @property modalElement
* @type object
* @readonly
* @private
*/
get modalElement() {
return document.getElementById(this.get('modalId'));
}
/**
* The DOM element of the backdrop element.
* Ember.run timer
*
* @property timer
* @private
*/
timer = null;
/**
* Use CSS transitions?
*
* @property usesTransition
* @type boolean
* @readonly
* @private
*/
@usesTransition('fade')
usesTransition;
/**
* The DOM element of the overlay element.
*
* @property overlayElement
* @type object
* @readonly
* @private
*/
get overlayElement() {
return document.getElementById(this.get('overlayId'));
}
/**
* This action is called immediately when the tooltip/popover is about to be shown.
* @public
*/
type = 'default';
@typeClass('alert', 'type')
typeClass;
/**
* Use CSS transitions?
*
* @property usesTransition
* @type boolean
* @readonly
* @private
*/
@usesTransition('fade')
usesTransition;
/**
* The action to be sent after the alert has been dismissed (including the CSS transition).
*
* @event onDismissed
* @public
*/
onDismissed() {}
/**
* The action is called when the close button is clicked.
*
* You can return false to prevent closing the alert automatically, and do that in your action by
* setting `visible` to false.
*