This is a mostly declarative approach to creating reusable D3 graph.
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 Controller from '@ember/controller'; | |
import { later } from '@ember/runloop'; | |
export default Controller.extend({ | |
appName: 'Bug ember-sortable', | |
columns: [ | |
{ title: 'AAAAA' }, | |
{ title: 'BBBBB' }, | |
{ title: 'CCCCC' }, | |
{ title: 'DDDDD' }, |
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'; | |
const { | |
Component, | |
computed | |
} = Ember; | |
export default Component.extend({ | |
classNameBindings: ['isActive', ':pill-meta'], |
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 Component from '@ember/component'; | |
import { scheduleOnce } from '@ember/runloop'; | |
import { isEmpty } from '@ember/utils'; | |
import { computed } from '@ember/object'; | |
export default Component.extend({ | |
classNameBindings: ['isActive', ':pill-operator'], | |
isActive: false, | |
meta: 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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
hasStyledBytes: false, | |
actions: { | |
toggleByteStyling(val) { | |
console.log('val', val); | |
this.set('hasStyledBytes', val); |
Porting Netflix ember-nf-graph to Ember 2.7.0.
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({ | |
a: [1,2,3], | |
b: [4,5,6], | |
c: false, | |
actions: { | |
toggleLabels() { | |
this.toggleProperty('c'); |
NewerOlder