Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3499df0

Browse files
trodiValentinH
authored andcommitted
fix(Typescript): add typescript support for disableAnimation and update readme (#665)
- Added new `disableAnimation` option to Typescript file - Added `disableAnimation` option to readme docs
1 parent e657948 commit 3499df0

File tree

8 files changed

+15
-8
lines changed

8 files changed

+15
-8
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ The default options are:
295295
ariaLabel: null,
296296
ariaLabelledBy: null,
297297
ariaLabelHigh: null,
298-
ariaLabelledByHigh: null
298+
ariaLabelledByHigh: null,
299+
disableAnimation: false
299300
}
300301
```
301302

@@ -474,6 +475,8 @@ For custom scales:
474475

475476
**ariaLabelledBy and ariaLabelledByHigh** - _String (default to null)_: Use instead of ariaLabel and ariaLabelHigh to reference the id of an element which will be used to label the slider(s). Adds the `aria-labelledby` attribute.
476477

478+
**disableAnimation** - _Boolean (defaults to false)_: Set to true to disable slider animation.
479+
477480
## Change default options
478481

479482
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:

dist/rzslider.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ declare module "angular" {
208208
ariaLabelledBy?: string;
209209
/** String(default to null): Use instead of ariaLabel and ariaLabelHigh to reference the id of an element which will be used to label the slider(s). Adds the aria-labelledby attribute. */
210210
ariaLabelledByHigh?: string;
211+
/** Boolean (defaults to false): Set to true to disable slider animation. */
212+
disableAnimation?: boolean;
211213
}
212214
}
213215
}

dist/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v7.0.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2019-02-23 */
4+
2019-03-06 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
;(function(root, factory) {

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.scss

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

rzslider.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ declare module "angular" {
208208
ariaLabelledBy?: string;
209209
/** String(default to null): Use instead of ariaLabel and ariaLabelHigh to reference the id of an element which will be used to label the slider(s). Adds the aria-labelledby attribute. */
210210
ariaLabelledByHigh?: string;
211+
/** Boolean (defaults to false): Set to true to disable slider animation. */
212+
disableAnimation?: boolean;
211213
}
212214
}
213215
}

0 commit comments

Comments
 (0)