Skip to content

Commit

Permalink
2.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hervieu committed Dec 22, 2015
1 parent b646617 commit e9c097e
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 23 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.3.0 (2015-12-22)
## Features
- Add keyboard support (activated by default with `keyboardSupport` set to true) (#191).
- Add a `draggableRangeOnly` options (#203).

# 2.2.0 (2015-12-17)
## Features
- Add a `getSelectionBarColor` option to dynamically change the selection bar color (#197).
Expand Down
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ module.exports = function(grunt) {
},
js: {
src: ['dist/rzslider.js'],
dest: 'dist/rzslider.js',
dest: 'dist/rzslider.js'
},
css: {
src: ['dist/rzslider.css'],
dest: 'dist/rzslider.css',
},
dest: 'dist/rzslider.css'
}
},

ngAnnotate: {
options: {
singleQuotes: true,
singleQuotes: true
},
rzslider: {
files: [{
Expand Down Expand Up @@ -159,6 +159,6 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['css', 'js']);
grunt.registerTask('test', ['karma']);

grunt.registerTask('css', ['recess']);
grunt.registerTask('js', ['ngtemplates', 'replace','concat', 'ngAnnotate', 'uglify']);
grunt.registerTask('css', ['recess','concat:css']);
grunt.registerTask('js', ['ngtemplates', 'replace','concat:js', 'ngAnnotate', 'uglify']);
};
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,22 @@ The default options are:
ceil: null, //defaults to rz-slider-model
step: 1,
precision: 0,
translate: null,
id: null,
translate: null,
stepsArray: null,
draggableRange: false,
draggableRangeOnly: false,
showSelectionBar: false,
hideLimitLabels: false,
readOnly: false,
disabled: false,
interval: 350,
showTicks: false,
showTicksValues: false,
ticksValuesTooltip: null,
vertical: false,
selectionBarColor: null,
keyboardSupport: true,
scale: 1,
onStart: null,
onChange: null,
Expand Down Expand Up @@ -239,6 +243,14 @@ $scope.slider = {
**vertical** - _Boolean (defaults to false)_: Set to true to display the slider vertically. The slider will take the full height of its parent.
_Changing this value at runtime is not currently supported._

**keyboardSupport** - _Boolean (defaults to true)_: Handles are focusable (on click or with tab) and can be modified using the following keyboard controls:
- Left/bottom arrows: -1
- Right/top arrows: +1
- Page-down: -10%
- Page-up: +10%
- Home: minimum value
- End: maximum value

## Change default options
If you want the change the default options for all the sliders displayed in your application, you can set them using the `RzSliderOptions.options()` method:
```js
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angularjs-slider",
"version": "2.2.0",
"homepage": "https://github.com/rzajac/angularjs-slider",
"version": "2.3.0",
"homepage": "https://github.com/angular-slider/angularjs-slider",
"authors": [
"Rafal Zajac <[email protected]>",
"Valentin Hervieu <[email protected]>",
Expand Down
13 changes: 4 additions & 9 deletions dist/rzslider.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/**
* Angular JS slider directive
*
* (c) Rafal Zajac <[email protected]>
* http://github.com/rzajac/angularjs-slider
*
* Licensed under the MIT license
*/

/*! angularjs-slider - v2.3.0 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2015-12-22 */
rzslider {
position: relative;
display: inline-block;
Expand Down
4 changes: 2 additions & 2 deletions dist/rzslider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! angularjs-slider - v2.2.0 -
/*! angularjs-slider - v2.3.0 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2015-12-21 */
2015-12-22 */
/*jslint unparam: true */
/*global angular: false, console: false, define, module */
(function(root, factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/rzslider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/rzslider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "2.2.0",
"version": "2.3.0",
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
"main": "dist/rzslider.js",
"repository": {
Expand Down

0 comments on commit e9c097e

Please sign in to comment.