Skip to content

Instantly share code, notes, and snippets.

@NickChristensen
Created November 10, 2016 17:33
Show Gist options
  • Save NickChristensen/76991635901a4f3d757a94eea709114c to your computer and use it in GitHub Desktop.
Save NickChristensen/76991635901a4f3d757a94eea709114c to your computer and use it in GitHub Desktop.
range-slider
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: 100,
actions: {
updateValue(val) {
this.set('value', val);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{range-slider start=value
min=0
max=100
on-slide="updateValue"
}}
Value: {{value}}
<input value={{value}} oninput={{action (mut value) value="target.value"}} />
<br>
<br>
{
"version": "0.10.6",
"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.6.0",
"ember-data": "2.6.0",
"ember-template-compiler": "2.6.0",
"ember-testing": "2.6.0"
},
"addons": {
"ember-cli-nouislider": "~0.10.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment