I looked around for a good popover library for Ember. I couldn't find one I liked (and was compatible with Ember 1.13 and Glimmer), so I whipped up a little ditty:
// app/pop-over/component.js
import $ from "jquery";| /** | |
| * Extend {{input}} to support html5 range. | |
| * Example: {{input type="range" value=myProperty max="500"}} | |
| * Uses rangeslider.js plugin for IE9 support and to look pretty | |
| * Fires optional onInit, onSlide, and onSlideEnd events | |
| */ | |
| Ember.TextSupport.reopen({ | |
| attributeBindings: ['min', 'max', 'step'], | |
| initRangeSlider: function() { | |
| if (this.get('type') === 'range') { |
I looked around for a good popover library for Ember. I couldn't find one I liked (and was compatible with Ember 1.13 and Glimmer), so I whipped up a little ditty:
// app/pop-over/component.js
import $ from "jquery";