Sha256: 0916de5c5d2039f1996dcc1c3f33408f53da8296111d99404825d1446a61e9cd
Contents?: true
Size: 653 Bytes
Versions: 7
Compression:
Stored size: 653 Bytes
Contents
import Ember from 'ember'; const { computed } = Ember; import layout from '../templates/components/bsy-alert'; export default Ember.Component.extend({ layout, classNames: 'alert', classNameBindings: ['typeClassName', 'dismissibleClassName'], attributeBindings: ['role'], role: 'alert', dismissible: false, typeClassName: computed('type', function() { return 'alert-' + this.get('type'); }), dismissibleClassName: computed('dismissible', function() { if (this.get('dismissible') === true) { return 'alert-dismissible'; } }), actions: { dismiss: function() { this._renderNode.destroy(); } } });
Version data entries
7 entries across 7 versions & 1 rubygems