Sha256: 9ee02424e165159ce72312c0a8336544f7b4e9d37a347886bd74d8c2dd26c029
Contents?: true
Size: 730 Bytes
Versions: 64
Compression:
Stored size: 730 Bytes
Contents
<script type="text/ng-template" id="offset_input"> <input ng-model="ngModel" ng-change="checkOffsetValid()" type="range" class="btn-block" list="tickmarks" min="0" max="12"> </script> <script> promethee.directive('offsetInput', function() { return { restrict: 'E', scope: { ngModel: '=', ngMax: "=" }, templateUrl: 'offset_input', controller: function($scope) { $scope.$watch('ngMax', function () { $scope.checkOffsetValid(); }); $scope.checkOffsetValid = function () { $scope.ngModel = Math.min($scope.ngModel, $scope.ngMax); }; } } }); </script>
Version data entries
64 entries across 64 versions & 1 rubygems