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.Controller.extend({ | |
appName: 'Ember Twiddle!!' | |
}); |
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'; | |
// import { isBlank } from '@ember/utils'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Power Select - focus', | |
cities: ['Barcelona', 'London', 'New York', 'Porto'], | |
actions: { | |
handleFocus(select, e) { | |
console.debug('EPS focused!'); |
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'; | |
import { get, set, computed } from '@ember/object'; | |
import { A as emberArray } from '@ember/array'; | |
export default Ember.Component.extend({ | |
sorts: [{valuePath: 'name', isAscending: true}], | |
columns: [ | |
{ |
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'; | |
import {computed, get, set} from '@ember/object'; | |
export default Ember.Component.extend({ | |
columns: null, | |
rows: null, | |
editingRowId: null, | |
init () { |
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'; | |
import {computed, get, set} from '@ember/object'; | |
export default Ember.Component.extend({ | |
columns: null, | |
editingRowId: null, | |
editingCellValue: null, | |
init () { |
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
/** | |
To use this file you'll need to have `jscodeshift` (https://github.com/facebook/jscodeshift) | |
installed, which you can get through npm or yarn. | |
You can invoke it as follows: | |
`jscodeshift -t add-super-calls.js ~/path/to/js/files/` | |
You can pass `-d` to do a dry-run. | |
*/ | |
const hookNames = [ | |
'init', | |
'didInitAttrs', |
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.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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.Controller.extend({ | |
appName:'Score Grid Twiddle', | |
}); |
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.Controller.extend({ | |
rows: Ember.A([1,2,3,4,5,6,7,8,9,10]), | |
cols: Ember.A([1,2,3,4,5]), | |
foos: Ember.A([ | |
Ember.Object.create({ | |
scores: [ |
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.Controller.extend({ | |
appName:'Score Grid Twiddle', | |
}); |