Consider the basic example given here:
- https://aurelia-ui-toolkits.github.io/demo-kendo/#/samples/slider-basic-use
... which is also available on gist.run:
- https://gist.run/?id=387c43948dc83acf59ea3497472bdfe9
In that app.html
, there are several sliders constructed as input
of class="eqSlider"
, like this:
<input repeat.for="value of equalizerSliderValues"
ak-slider="k-orientation: vertical;
k-min.bind: -20;
k-max.bind: 20;
k-value.bind: value;
k-small-step.bind: 1;
k-large-step.bind: 20;
k-show-buttons.bind: false" class="eqSlider"/>
What I would want, is that I add an attached()
method, and iterate through all these sliders of class eqSlider
, print them out through console.log()
, and call the resize()
method ( http://docs.telerik.com/kendo-ui/api/javascript/ui/slider#methods-resize ) on each of them.
- Can I do this without
jquery
- if so, how? - If not, how do I do that with
jquery
(as thedocs.telerik.com
example uses that)? I've tried adding:import * as $ from 'jquery';
... at top of app.js
in the gist.run
example, but it fails with:
Failed to load resource: the server responded with a status of 404 (OK)
bluebird.min.js:29 Unhandled rejection Error: XHR error (404 OK) loading https://gist.host/run/1487343107475/jquery.js
at o (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js:4:12694)
at XMLHttpRequest.s.onreadystatechange (https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js:4:13219)