Skip to content

Instantly share code, notes, and snippets.

@les2
Last active April 30, 2018 15:20
Show Gist options
  • Select an option

  • Save les2/14393066da29797a828361fff48cbb73 to your computer and use it in GitHub Desktop.

Select an option

Save les2/14393066da29797a828361fff48cbb73 to your computer and use it in GitHub Desktop.
Ember Range Input
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: 0
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
.big {
padding: 20px; border: thick inset green; font-size: 56px;
}
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<p>
{{input type='range' value=value min=0 max=100}}
</p>
<p>
<input type='range' value="{{value}}" min='0' max='100' />
</p>
<p>
<input type='range' min='0' max='100' />
</p>
<br>
<br>
<p class='big'>
The slider value is: {{value}}
</p>
{
"version": "0.13.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.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment