File Manager

Current Directory: /home/astoriaah/www/templates/yootheme/vendor/assets/uikit/src/js/core
Viewing File: /home/astoriaah/www/templates/yootheme/vendor/assets/uikit/src/js/core/alert.js
import Class from '../mixin/class'; import Togglable from '../mixin/togglable'; import {assign} from 'uikit-util'; export default { attrs: true, mixins: [Class, Togglable], args: 'animation', props: { close: String }, data: { animation: [true], selClose: '.uk-alert-close', duration: 150, hideProps: assign({opacity: 0}, Togglable.data.hideProps) }, events: [ { name: 'click', delegate() { return this.selClose; }, handler(e) { e.preventDefault(); this.close(); } } ], methods: { close() { this.toggleElement(this.$el).then(() => this.$destroy(true)); } } };