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: RShiny/lessons/css/css_sliderInput.md
+63-7Lines changed: 63 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@ Jump to the following sections:
21
21
-[Slider Bar](#slider-bar)
22
22
-[Filled Portion of the Bar](#filled-portion-of-the-bar)
23
23
-[Text on the Tick Marks](#text-on-the-tick-marks)
24
+
-[Major Tick Marks](#major-tick-marks)
25
+
-[Minor Tick Marks](#minor-tick-marks)
24
26
25
27
Things to add:
26
28
- Make a figure to show Slider Handle with Range
27
-
- .irs-grid-pol
28
-
- .irs-grid-pol.small
29
29
30
30
## Slider Label
31
31
@@ -333,7 +333,7 @@ An example CSS entry for the value of the slider handle is below:
333
333
|`box-shadow`| The shadow of the value box ([reference](css_input_option_reference.md#box-shadow)) |
334
334
|`text-shadow`| The shadow of the text within the value box ([reference](css_input_option_reference.md#text-shadow)) |
335
335
336
-
# Slider Bar
336
+
##Slider Bar
337
337
338
338
An example CSS entry for the value of the filled portion of the bar is below:
339
339
@@ -359,7 +359,7 @@ An example CSS entry for the value of the filled portion of the bar is below:
359
359
|`opacity`| Opacity of the value box ([reference](css_input_option_reference.md#opacity)) |
360
360
|`box-shadow`| The shadow of the value box ([reference](css_input_option_reference.md#box-shadow)) |
361
361
362
-
# Filled Portion of the Bar
362
+
##Filled Portion of the Bar
363
363
364
364
An example CSS entry for the value of the filled portion of the bar is below:
365
365
@@ -385,9 +385,9 @@ An example CSS entry for the value of the filled portion of the bar is below:
385
385
|`opacity`| Opacity of the value box ([reference](css_input_option_reference.md#opacity)) |
386
386
|`box-shadow`| The shadow of the value box ([reference](css_input_option_reference.md#box-shadow)) |
387
387
388
-
# Text on the Tick Marks
388
+
##Text on the Tick Marks
389
389
390
-
## Control across all of the text on tick marks
390
+
###Control across all of the text on tick marks
391
391
392
392
An example CSS entry for the value of the filled portion of the bar is below:
393
393
@@ -431,7 +431,7 @@ An example CSS entry for the value of the filled portion of the bar is below:
431
431
|`box-shadow`| The shadow of the slider minimum ([reference](css_input_option_reference.md#box-shadow)) |
432
432
|`text-shadow`| The shadow of the text within the slider minimum ([reference](css_input_option_reference.md#text-shadow)) |
433
433
434
-
## Control over specific text on the tick marks
434
+
###Control over specific text on the tick marks
435
435
436
436
If you would like to have finer control over the text on the tick mark and assign different CSS input for different text you can modify the CSS entry to be:
437
437
@@ -459,6 +459,62 @@ And if you wantd to modify the fourth text element then you would use:
459
459
460
460
> NOTE: Remember the indexing is zero-indexed!
461
461
462
+
## Major Tick Marks
463
+
464
+
An example CSS entry for the values of the major tick marks is below:
465
+
466
+
```
467
+
.irs--shiny .irs-grid-pol:not(.small){
468
+
height: 15px;
469
+
width: 4px;
470
+
background-color: green;
471
+
border-color: pink;
472
+
border-radius: 3px;
473
+
border-style: solid;
474
+
border-width: 1px;
475
+
opacity: 80%;
476
+
}
477
+
478
+
| Argument | Note |
479
+
|----------|------|
480
+
| `height` | Height of the major tick mark ([reference](css_input_option_reference.md#height)) |
481
+
| `width` | Width of the major tick mark ([reference](css_input_option_reference.md#width)) |
482
+
| `background-color` | The color for the major tick mark ([reference](css_input_option_reference.md#background-color)) |
483
+
| `border-color` | Color of the border ([reference](css_input_option_reference.md#border-color)) |
484
+
| `border-radius` | How curved the radius of the corners of tick mark are ([reference](css_input_option_reference.md#border-radius)) |
485
+
| `border-style` | Style of the border ([reference](css_input_option_reference.md#border-style)) |
486
+
| `border-width` | Width of the border ([reference](css_input_option_reference.md#border-width)) |
487
+
| `opacity` | Opacity of the major tick marks ([reference](css_input_option_reference.md#opacity)) |
488
+
```
489
+
490
+
## Minor Tick Marks
491
+
492
+
An example CSS entry for the values of the major tick marks is below:
493
+
494
+
```
495
+
.irs--shiny .irs-grid-pol.small{
496
+
height: 10px;
497
+
width: 5px;
498
+
background-color: blue;
499
+
border-color: red;
500
+
border-radius: 4px;
501
+
border-style: dotted;
502
+
border-width: 2px;
503
+
opacity: 90%;
504
+
}
505
+
506
+
| Argument | Note |
507
+
|----------|------|
508
+
| `height` | Height of the minor tick mark ([reference](css_input_option_reference.md#height)) |
509
+
| `width` | Width of the minor tick mark ([reference](css_input_option_reference.md#width)) |
510
+
| `background-color` | The color for the minor tick mark ([reference](css_input_option_reference.md#background-color)) |
511
+
| `border-color` | Color of the border ([reference](css_input_option_reference.md#border-color)) |
512
+
| `border-radius` | How curved the radius of the corners of tick mark are ([reference](css_input_option_reference.md#border-radius)) |
513
+
| `border-style` | Style of the border ([reference](css_input_option_reference.md#border-style)) |
514
+
| `border-width` | Width of the border ([reference](css_input_option_reference.md#border-width)) |
515
+
| `opacity` | Opacity of the minor tick marks ([reference](css_input_option_reference.md#opacity)) |
0 commit comments