framework/ember/app/components/ui/controls/loading-indicator.js

15 lines
309 B
JavaScript
Raw Normal View History

2014-12-20 14:26:46 +08:00
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['loading-indicator'],
2014-12-20 14:26:46 +08:00
layout: Ember.Handlebars.compile(' '),
size: 'small',
2014-12-20 14:26:46 +08:00
didInsertElement: function() {
var size = this.get('size');
Ember.$.fn.spin.presets[size].zIndex = 'auto';
this.$().spin(size);
2014-12-20 14:26:46 +08:00
}
});