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
c650cf2a
Commit
c650cf2a
authored
Jan 22, 2016
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update demo site with latest options
parent
e2144e60
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
5 deletions
+36
-5
demo.js
demo.js
+12
-1
index.html
index.html
+12
-2
minRangeSlider.js
snippets/minRangeSlider.js
+3
-2
rangeSlider.js
snippets/rangeSlider.js
+9
-0
No files found.
demo.js
View file @
c650cf2a
...
@@ -17,7 +17,7 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
...
@@ -17,7 +17,7 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
};
};
//Range slider config
//Range slider config
$scope
.
minR
angeSlider
=
{
$scope
.
r
angeSlider
=
{
minValue
:
10
,
minValue
:
10
,
maxValue
:
90
,
maxValue
:
90
,
options
:
{
options
:
{
...
@@ -27,6 +27,17 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
...
@@ -27,6 +27,17 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
}
}
};
};
$scope
.
minRangeSlider
=
{
minValue
:
10
,
maxValue
:
90
,
options
:
{
floor
:
0
,
ceil
:
100
,
step
:
1
,
minRange
:
10
}
};
//Slider with selection bar
//Slider with selection bar
$scope
.
slider_visible_bar
=
{
$scope
.
slider_visible_bar
=
{
value
:
10
,
value
:
10
,
...
...
index.html
View file @
c650cf2a
...
@@ -51,8 +51,18 @@
...
@@ -51,8 +51,18 @@
<article>
<article>
<h2>
Range slider
</h2>
<h2>
Range slider
</h2>
Min Value:
<input
type=
"number"
ng-model=
"minRangeSlider.minValue"
/><br/>
Min Value:
<input
type=
"number"
ng-model=
"rangeSlider.minValue"
/><br/>
Max Value:
<input
type=
"number"
ng-model=
"minRangeSlider.maxValue"
/><br/>
Max Value:
<input
type=
"number"
ng-model=
"rangeSlider.maxValue"
/><br/>
<rzslider
rz-slider-model=
"rangeSlider.minValue"
rz-slider-high=
"rangeSlider.maxValue"
rz-slider-options=
"rangeSlider.options"
></rzslider>
<show-code
js-file=
"rangeSlider"
html-file=
"rangeSlider"
></show-code>
</article>
<article>
<h2>
Range slider with a minimal range set to 10
</h2>
<rzslider
<rzslider
rz-slider-model=
"minRangeSlider.minValue"
rz-slider-model=
"minRangeSlider.minValue"
rz-slider-high=
"minRangeSlider.maxValue"
rz-slider-high=
"minRangeSlider.maxValue"
...
...
snippets/minRangeSlider.js
View file @
c650cf2a
...
@@ -4,6 +4,7 @@ $scope.slider = {
...
@@ -4,6 +4,7 @@ $scope.slider = {
options
:
{
options
:
{
floor
:
0
,
floor
:
0
,
ceil
:
100
,
ceil
:
100
,
step
:
1
step
:
1
,
minRange
:
10
}
}
};
};
\ No newline at end of file
snippets/rangeSlider.js
0 → 100644
View file @
c650cf2a
$scope
.
slider
=
{
minValue
:
10
,
maxValue
:
90
,
options
:
{
floor
:
0
,
ceil
:
100
,
step
:
1
}
};
\ No newline at end of file
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