This file contains hidden or 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:'input', | |
attributeBindings:['type','style','value'], | |
init() { | |
this._super(...arguments); | |
this.on('paste', this, this._elementValueDidChange); | |
this.on('cut', this, this._elementValueDidChange); |
This file contains hidden or 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({ | |
init() { | |
this._super(...arguments); | |
this.set('value', 0); | |
}, | |
actions: { | |
up() { |
This file contains hidden or 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({ | |
name2: 'Micheal', | |
actions: { | |
name2DidChange: function() { | |
let value = this.$('#html_input').val(); | |
this.set('name2', value); | |
} | |
} |
This file contains hidden or 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({ | |
actions:{ | |
changeAppAtComponent(){ | |
this.set('appName','Kumkanillam'); | |
} | |
} | |
}); |
This file contains hidden or 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({ | |
classNames: ['cursor-pointer'], | |
clickListener: Ember.on('click', function(){ | |
let doSth = this.get('doSth'); | |
if (doSth) { | |
console.log('Click listener is about to trigger action'); |
This file contains hidden or 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 XSelectComponent from './x-select'; | |
var isArray = Ember.isArray; | |
/** | |
* Used to wrap a native `<option>` tag and associate an object with | |
* it that can be bound. It can only be used in conjuction with a | |
* containing `x-select` component | |
* |
NewerOlder