@@ -6,13 +6,15 @@ import { CommonNameConfig, NameConfig, withExposingConfigs } from "../../generat
66import { SliderChildren , SliderPropertyView , SliderStyled , SliderWrapper } from "./sliderCompConstants" ;
77import { hasIcon } from "comps/utils" ;
88import { BoolControl } from "comps/controls/boolControl" ;
9+ import { NumberControl } from "comps/controls/codeControl" ;
910
1011const RangeSliderBasicComp = ( function ( ) {
1112 const childrenMap = {
1213 ...SliderChildren ,
1314 start : numberExposingStateControl ( "start" , 10 ) ,
1415 end : numberExposingStateControl ( "end" , 60 ) ,
1516 vertical : BoolControl ,
17+ tabIndex : NumberControl ,
1618 } ;
1719 return new UICompBuilder ( childrenMap , ( props , dispatch ) => {
1820 return props . label ( {
@@ -36,6 +38,7 @@ const RangeSliderBasicComp = (function () {
3638 $style = { props . inputFieldStyle }
3739 style = { { margin : 0 } }
3840 $vertical = { Boolean ( props . vertical ) || false }
41+ tabIndex = { typeof props . tabIndex === 'number' ? props . tabIndex : undefined }
3942 onChange = { ( [ start , end ] ) => {
4043 props . start . onChange ( start ) ;
4144 props . end . onChange ( end ) ;
@@ -60,6 +63,7 @@ const RangeSliderBasicComp = (function () {
6063 tooltip : trans ( "rangeSlider.stepTooltip" ) ,
6164 } ) }
6265 { children . vertical . propertyView ( { label : trans ( "slider.vertical" ) } ) }
66+ { children . tabIndex . propertyView ( { label : trans ( "prop.tabIndex" ) } ) }
6367 </ Section >
6468
6569 < SliderPropertyView { ...children } />
0 commit comments