Last active
December 7, 2017 22:02
-
-
Save dhindurthy/ad4c40ff68b682f3c65b7924e275ec0b to your computer and use it in GitHub Desktop.
aria-errormessage
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({ | |
ariaLive: "off", | |
ariaInvalid: "false", | |
showMessage: false, | |
numbervalue:'', | |
change: function(e) { | |
//alert(e.target.value); | |
if(e.target.value==="1234"){ | |
//alert('x'); | |
this.set('ariaLive','off'); | |
this.set('ariaInvalid','false'); | |
this.set('showMessage',false); | |
} else { | |
this.set('ariaLive','assertive'); | |
this.set('ariaInvalid','true'); | |
this.set('showMessage',true); | |
} | |
this.sendAction('on-change', e.target.value); | |
}, | |
actions: { | |
clcikedit: function(value){ | |
alert(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.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({ | |
numbervalue: "234", | |
actions:{ | |
changedit: function(numbervalue){ | |
alert(numbervalue); | |
this.set('numbervalue',numbervalue); | |
} | |
} | |
}); |
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.Route.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
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-data": "2.12.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment