@@ -13,7 +13,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
13
13
const component = "ui5-range-slider" ;
14
14
15
15
export default {
16
- title : "Main/RangeSlider " ,
16
+ title : "Main/Range Slider " ,
17
17
component : "RangeSlider" ,
18
18
parameters : {
19
19
docs : {
@@ -35,38 +35,54 @@ const Template: UI5StoryArgs<RangeSlider, StoryArgsSlots> = (args) => html`
35
35
?show-tooltip ="${ ifDefined ( args . showTooltip ) } "
36
36
> </ ui5-range-slider > `;
37
37
38
- export const BasicRangeSlider = Template . bind ( { } ) ;
39
- BasicRangeSlider . args = {
38
+ export const Basic = Template . bind ( { } ) ;
39
+ Basic . decorators = [
40
+ ( story ) => {
41
+ return html `
42
+ < div class ="wrapper " style ="margin-top:1rem; ">
43
+ ${ story ( ) }
44
+ </ div >
45
+ ` ;
46
+ }
47
+ ]
48
+ Basic . args = {
49
+ min : 0 ,
50
+ max : 100 ,
51
+ step : 5 ,
52
+ disabled : false ,
53
+ showTooltip : false ,
54
+ showTickmarks : false ,
55
+ labelInterval : 0 ,
56
+ startValue : 0 ,
40
57
endValue : 20
41
58
} ;
42
59
43
- export const RangeSliderCustomValues = Template . bind ( { } ) ;
44
- RangeSliderCustomValues . args = {
45
- min : 100 ,
46
- max : 200 ,
47
- startValue : 120 ,
48
- endValue : 150
49
- } ;
50
- RangeSliderCustomValues . storyName = "Range Slider with Custom 'min', 'max', 'startValue' and 'endValue' Properties" ;
51
-
52
- export const RangeSliderTooltip = Template . bind ( { } ) ;
53
- RangeSliderTooltip . args = {
60
+ export const WithTooltips = Template . bind ( { } ) ;
61
+ WithTooltips . decorators = [
62
+ ( story ) => {
63
+ return html `
64
+ < div class =" wrapper " style =" margin-top:1rem; " >
65
+ ${ story ( ) }
66
+ </ div >
67
+ ` ;
68
+ }
69
+ ]
70
+ WithTooltips . args = {
54
71
startValue : 3 ,
55
72
endValue : 13 ,
56
73
showTooltip : true
57
74
} ;
58
- RangeSliderTooltip . storyName = "Range Slider with Tooltips" ;
59
-
60
- export const RangeSliderTickmarksCustomStep = Template . bind ( { } ) ;
61
- RangeSliderTickmarksCustomStep . args = {
62
- step : 2 ,
63
- startValue : 12 ,
64
- endValue : 24 ,
65
- showTickmarks : true
66
- } ;
67
- RangeSliderTickmarksCustomStep . storyName = "Range Slider with Tickmarks and Custom Step" ;
68
75
69
76
export const RangeSliderTickmarksTooltipLabel = Template . bind ( { } ) ;
77
+ RangeSliderTickmarksTooltipLabel . decorators = [
78
+ ( story ) => {
79
+ return html `
80
+ < div class ="wrapper " style ="margin-top:1rem; ">
81
+ ${ story ( ) }
82
+ </ div >
83
+ ` ;
84
+ }
85
+ ]
70
86
RangeSliderTickmarksTooltipLabel . args = {
71
87
min : 0 ,
72
88
max : 112 ,
@@ -77,4 +93,4 @@ RangeSliderTickmarksTooltipLabel.args = {
77
93
showTickmarks : true ,
78
94
showTooltip : true
79
95
} ;
80
- RangeSliderTickmarksTooltipLabel . storyName = "Range Slider with Tooltips, Tickmarks and Labels" ;
96
+ RangeSliderTickmarksTooltipLabel . storyName = "With Tooltips, Tickmarks and Labels" ;
0 commit comments