Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
b6dd1de1
Commit
b6dd1de1
authored
Dec 23, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add draggableRangeOnly to demo
parent
0324d2ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
demo.js
demo.js
+20
-6
index.html
index.html
+9
-0
No files found.
demo.js
View file @
b6dd1de1
...
@@ -67,7 +67,11 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -67,7 +67,11 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
}
}
}
};
};
$scope
.
otherData
=
{
start
:
0
,
change
:
0
,
end
:
0
};
$scope
.
otherData
=
{
start
:
0
,
change
:
0
,
end
:
0
};
//Slider config with custom display function
//Slider config with custom display function
$scope
.
slider_translate
=
{
$scope
.
slider_translate
=
{
...
@@ -86,7 +90,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -86,7 +90,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
$scope
.
slider_alphabet
=
{
$scope
.
slider_alphabet
=
{
value
:
0
,
value
:
0
,
options
:
{
options
:
{
stepsArray
:
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
)
stepsArray
:
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
)
}
}
};
};
...
@@ -135,6 +139,17 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -135,6 +139,17 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
}
};
};
//Slider with draggable range only
$scope
.
slider_draggable_range_only
=
{
minValue
:
4
,
maxValue
:
6
,
options
:
{
ceil
:
10
,
floor
:
0
,
draggableRangeOnly
:
true
}
};
//Vertical sliders
//Vertical sliders
$scope
.
verticalSlider1
=
{
$scope
.
verticalSlider1
=
{
value
:
0
,
value
:
0
,
...
@@ -280,7 +295,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -280,7 +295,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
$scope
.
percentages
=
percentages
;
$scope
.
percentages
=
percentages
;
});
});
modalInstance
.
rendered
.
then
(
function
()
{
modalInstance
.
rendered
.
then
(
function
()
{
$rootScope
.
$broadcast
(
'rzSliderForceRender'
);
//Force refresh sliders on render. Otherwise bullets are aligned at left side.
$rootScope
.
$broadcast
(
'rzSliderForceRender'
);
//Force refresh sliders on render. Otherwise bullets are aligned at left side.
});
});
};
};
...
@@ -319,10 +334,9 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -319,10 +334,9 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
}
};
};
$scope
.
toggleHighValue
=
function
()
{
$scope
.
toggleHighValue
=
function
()
{
if
(
$scope
.
slider_all_options
.
maxValue
!=
null
)
{
if
(
$scope
.
slider_all_options
.
maxValue
!=
null
)
{
$scope
.
slider_all_options
.
maxValue
=
undefined
;
$scope
.
slider_all_options
.
maxValue
=
undefined
;
}
}
else
{
else
{
$scope
.
slider_all_options
.
maxValue
=
8
;
$scope
.
slider_all_options
.
maxValue
=
8
;
}
}
}
}
...
...
index.html
View file @
b6dd1de1
...
@@ -123,6 +123,15 @@
...
@@ -123,6 +123,15 @@
></rzslider>
></rzslider>
</article>
</article>
<article>
<h2>
Slider with draggable range only
</h2>
<rzslider
rz-slider-model=
"slider_draggable_range_only.minValue"
rz-slider-high=
"slider_draggable_range_only.maxValue"
rz-slider-options=
"slider_draggable_range_only.options"
></rzslider>
</article>
<article>
<article>
<h2>
Vertical sliders
</h2>
<h2>
Vertical sliders
</h2>
<div
class=
"row vertical-sliders"
style=
"margin: 20px;"
>
<div
class=
"row vertical-sliders"
style=
"margin: 20px;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment