You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ This project use [Prettier](https://github.com/prettier/prettier) for its code f
10
10
11
11
To contribute to the project, please follow these steps:
12
12
13
-
1. Get approval for the idea by filing an issue and talking with me about the changes
14
-
2. Fork the repo
15
-
3. Make a branch for your change
16
-
4. Run `npm install`
17
-
5. Run `npm run test`
18
-
6. Make your changes
19
-
7. Test your changes (if you need a new test file, please copy the `test-template.js` file in the tests/specs folder.)
20
-
8. Run `npm run build` to generate the dist files
21
-
9. Run `git add -A` to add your changes
22
-
10. Run `npm run commit` (**Do not** use `git commit`) - follow the prompts to create your git message
13
+
1.Get approval for the idea by filing an issue and talking with me about the changes
14
+
2.Fork the repo
15
+
3.Make a branch for your change
16
+
4.Run `yarn`
17
+
5.Run `yarn test`
18
+
6.Make your changes
19
+
7.Test your changes (if you need a new test file, please copy the `test-template.js` file in the tests/specs folder.)
20
+
8.Run `yarn build` to generate the dist files
21
+
9.Run `git add -A` to add your changes
22
+
10. Run `yarn commit` (**Do not** use `git commit`) - follow the prompts to create your git message
23
23
11. Push your changes with `git push`
24
24
12. Create the Pull Request (a demo showing what the PR does is always good so you can fork [this fiddle](http://jsfiddle.net/cwhgLcjv/))
25
25
13. If there are several commits, please [rebase](https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request) and [squash](https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request#squash-your-changes) everything to only get one commit.
Copy file name to clipboardExpand all lines: README.md
+42-36Lines changed: 42 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@ Links:
16
16
17
17
Slider directive implementation for AngularJS 1.X, without any dependencies: [http://angular-slider.github.io/angularjs-slider](http://angular-slider.github.io/angularjs-slider/index.html).
18
18
19
-
* Mobile friendly
20
-
* Fast
21
-
* Well documented
22
-
* Customizable
23
-
* Simple to use
24
-
* Keyboard support
25
-
* Compatibility with jQuery Lite, ie. with full jQuery ( Thanks Jusas! https://github.com/Jusas)
26
-
* Supports right to left
19
+
- Mobile friendly
20
+
- Fast
21
+
- Well documented
22
+
- Customizable
23
+
- Simple to use
24
+
- Keyboard support
25
+
- Compatibility with jQuery Lite, ie. with full jQuery ( Thanks Jusas! https://github.com/Jusas)
26
+
- Supports right to left
27
27
28
28
**Horizontal**
29
29
@@ -38,10 +38,10 @@ Slider directive implementation for AngularJS 1.X, without any dependencies: [ht
38
38
39
39
## Examples
40
40
41
-
***Simple example for single slider:**[http://jsfiddle.net/cwhgLcjv](http://jsfiddle.net/cwhgLcjv/)
42
-
***Simple example for double slider:**[http://jsfiddle.net/ye1kpfrj](http://jsfiddle.net/ye1kpfrj/)
The following variables are available in the template as scope variables.
211
217
212
-
*`floorLabel`: The value set to `floor` in `rz-slider-options`
213
-
*`ceilLabel`: The value set to `ceil` in `rz-slider-options`
214
-
*`modelLabel`: The value set to `rz-slider-model`
215
-
*`highLabel`: The value set to `rz-slider-high`
216
-
*`cmbLabel`: The text shown when the two handlers are close to each other. (e.g. "30-40")
218
+
-`floorLabel`: The value set to `floor` in `rz-slider-options`
219
+
-`ceilLabel`: The value set to `ceil` in `rz-slider-options`
220
+
-`modelLabel`: The value set to `rz-slider-model`
221
+
-`highLabel`: The value set to `rz-slider-high`
222
+
-`cmbLabel`: The text shown when the two handlers are close to each other. (e.g. "30-40")
217
223
218
224
The library replaces the HTML contents of label elements in the template by default, if you want to stop this behaviour and tweak label HTML on your own, you need to set `no-label-injection` class on the elements you're customizing.
219
225
@@ -312,11 +318,11 @@ The default options are:
312
318
**translate** - _Function(value, sliderId, label)_: Custom translate function. Use this if you want to translate values displayed on the slider.
313
319
`sliderId` can be used to determine the slider for which we are translating the value. `label` is a string that can take the following values:
314
320
315
-
*_'model'_: the model label
316
-
*_'high'_: the high label
317
-
*_'floor'_: the floor label
318
-
*_'ceil'_: the ceil label
319
-
*_'tick-value'_: the ticks labels
321
+
-_'model'_: the model label
322
+
-_'high'_: the high label
323
+
-_'floor'_: the floor label
324
+
-_'ceil'_: the ceil label
325
+
-_'tick-value'_: the ticks labels
320
326
321
327
For example if you want to display dollar amounts instead of just numbers:
322
328
@@ -432,21 +438,21 @@ _Changing this value at runtime is not currently supported._
432
438
433
439
**keyboardSupport** - _Boolean (defaults to true)_: Handles are focusable (on click or with tab) and can be modified using the following keyboard controls:
434
440
435
-
* Left/bottom arrows: -1
436
-
* Right/top arrows: +1
437
-
* Page-down: -10%
438
-
* Page-up: +10%
439
-
* Home: minimum value
440
-
* End: maximum value
441
+
- Left/bottom arrows: -1
442
+
- Right/top arrows: +1
443
+
- Page-down: -10%
444
+
- Page-up: +10%
445
+
- Home: minimum value
446
+
- End: maximum value
441
447
442
448
**reversedControls** - _Boolean (defaults to false)_: Set to true to reverse keyboard navigation:
443
449
444
-
* Right/top arrows: -1
445
-
* Left/bottom arrows: +1
446
-
* Page-up: -10%
447
-
* Page-down: +10%
448
-
* End: minimum value
449
-
* Home: maximum value
450
+
- Right/top arrows: -1
451
+
- Left/bottom arrows: +1
452
+
- Page-up: -10%
453
+
- Page-down: +10%
454
+
- End: minimum value
455
+
- Home: maximum value
450
456
451
457
**customTemplateScope** - _Object (default to null)_: The properties defined in this object will be exposed in the slider template under `custom.X`.
0 commit comments