diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js index c8a22693e3..c7b40da468 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js @@ -1,3 +1,62 @@ +/** +@ngdoc directive +@name umbraco.directives.directive:umbRangeSlider +@restrict E +@scope + +@description +Added in Umbraco version 8.0 +This directive is a wrapper of the noUiSlider library. Use it to render a slider. +For extra details about options and events take a look here: https://refreshless.com/nouislider/ + +
++ ++ +++ + +
+ (function () {
+ "use strict";
+
+ function Controller() {
+
+ var vm = this;
+
+ vm.value = [10];
+
+ vm.slideEnd = slideEnd;
+
+ function slideEnd(values) {
+ // handle change
+ }
+
+ }
+
+ angular.module("umbraco").controller("My.Controller", Controller);
+
+ })();
+
+
+@param {object} ngModel (binding): Value for the slider.
+@param {object} options (binding): Config object for the date picker.
+@param {callback} onSetup (callback): onSetup gets triggered when the slider is initialized
+@param {callback} onUpdate (callback): onUpdate fires every time the slider values are changed.
+@param {callback} onSlide (callback): onSlide gets triggered when the handle is being dragged.
+@param {callback} onSet (callback): onSet will trigger every time a slider stops changing.
+@param {callback} onChange (callback): onChange fires when a user stops sliding, or when a slider value is changed by 'tap'.
+@param {callback} onStart (callback): onStart fires when a handle is clicked (mousedown, or the equivalent touch events).
+@param {callback} onEnd (callback): onEnd fires when a handle is released (mouseup etc), or when a slide is canceled due to other reasons.
+**/
+
+
(function() {
'use strict';