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
0324d2ad
Commit
0324d2ad
authored
Dec 17, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add getSelectionBarColor to the demo page
parent
ca15931b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
demo.js
demo.js
+17
-0
index.html
index.html
+8
-0
update.sh
update.sh
+2
-2
No files found.
demo.js
View file @
0324d2ad
...
@@ -25,6 +25,23 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
...
@@ -25,6 +25,23 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
}
};
};
//Slider with selection bar
$scope
.
color_slider_bar
=
{
value
:
12
,
options
:
{
showSelectionBar
:
true
,
getSelectionBarColor
:
function
(
value
)
{
if
(
value
<=
3
)
return
'red'
;
if
(
value
<=
6
)
return
'orange'
;
if
(
value
<=
9
)
return
'yellow'
;
return
'#2AE02A'
;
}
}
};
//Slider config with floor, ceil and step
//Slider config with floor, ceil and step
$scope
.
slider_floor_ceil
=
{
$scope
.
slider_floor_ceil
=
{
value
:
12
,
value
:
12
,
...
...
index.html
View file @
0324d2ad
...
@@ -44,6 +44,14 @@
...
@@ -44,6 +44,14 @@
></rzslider>
></rzslider>
</article>
</article>
<article>
<h2>
Slider with dynamic selection bar colors
</h2>
<rzslider
rz-slider-model=
"color_slider_bar.value"
rz-slider-options=
"color_slider_bar.options"
></rzslider>
</article>
<article>
<article>
<h2>
Slider with custom floor/ceil/step
</h2>
<h2>
Slider with custom floor/ceil/step
</h2>
<rzslider
<rzslider
...
...
update.sh
View file @
0324d2ad
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
git checkout master
--
.gitignore
git checkout master
--
.gitignore
git checkout master
--
demo/
*
#
git checkout master -- demo/*
git checkout master
--
dist/rzslider.css
git checkout master
--
dist/rzslider.css
git checkout master
--
dist/rzslider.js
git checkout master
--
dist/rzslider.js
mv
demo/
*
./
#
mv demo/* ./
# cp bower_components/angular/angular.min.js angular.min.js
# cp bower_components/angular/angular.min.js angular.min.js
...
...
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