This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.TextField.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loader, define, requireModule, require, requirejs; | |
(function (global) { | |
'use strict'; | |
var heimdall = global.heimdall; | |
var _heimdall$registerMon = heimdall.registerMonitor('loaderjs', 'define', 'require', 'reify', 'findDeps', 'modules', 'exports', 'resolve', 'resolveRelative', 'findModule', 'pendingQueueLength'), | |
__define = _heimdall$registerMon.define, | |
__require = _heimdall$registerMon.require, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
function timeoutAfter2s(promise) { | |
return new Ember.RSVP.Promise((resolve, reject) => { | |
promise.then(resolve, reject); | |
Ember.run.later(() => reject('timeout'), 2000); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
change(e) { | |
this.sendAction('action', this.get(`options.${e.target.selectedIndex}`)); | |
}, | |
didReceiveAttrs() { | |
Ember.run.scheduleOnce('afterRender', () => { | |
this.$('select')[0].value = this.get('options').indexOf(this.get('value')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInsertElement() { | |
this.draggie = new Draggabilly(this.element, { | |
// options... | |
}); | |
}, | |
willDestroyElement() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
function wrap(options) { | |
return options.map(value => ({ value })); | |
} | |
export default Ember.Component.extend({ | |
allowNew: false, | |
_filter: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
function defaultFilter(options, input) { | |
return options.filter(v => v.startsWith(input)); | |
} | |
export default Ember.Component.extend({ | |
didReceiveAttrs() { | |
this.set('filteredOptions', this.get('options').slice()); | |
}, |