aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
authorMarek Piechut <marek.piechut@gmail.com>2017-10-09 13:38:00 +0200
committerMarek Piechut <marek.piechut@gmail.com>2017-10-09 13:38:00 +0200
commit5827568ef882ae5a474f37ff5c843e931528ebe8 (patch)
treede49d29b22db47adcaba3dee2bdf94227fdae665 /src/TimePicker.jsx
parent35d5ed7815f4707c79565a45261ffadc21d604be (diff)
downloadtime-picker-5827568ef882ae5a474f37ff5c843e931528ebe8.tar.gz
time-picker-5827568ef882ae5a474f37ff5c843e931528ebe8.tar.zst
time-picker-5827568ef882ae5a474f37ff5c843e931528ebe8.zip
Add hourStep, minuteStep and secondStep props to control intervals in picker
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 2c6a1f1..85dc3e2 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -46,6 +46,9 @@ export default class Picker extends Component {
46 name: PropTypes.string, 46 name: PropTypes.string,
47 autoComplete: PropTypes.string, 47 autoComplete: PropTypes.string,
48 use12Hours: PropTypes.bool, 48 use12Hours: PropTypes.bool,
49 hourStep: PropTypes.number,
50 minuteStep: PropTypes.number,
51 secondStep: PropTypes.number,
49 }; 52 };
50 53
51 static defaultProps = { 54 static defaultProps = {
@@ -157,7 +160,7 @@ export default class Picker extends Component {
157 prefixCls, placeholder, disabledHours, 160 prefixCls, placeholder, disabledHours,
158 disabledMinutes, disabledSeconds, hideDisabledOptions, 161 disabledMinutes, disabledSeconds, hideDisabledOptions,
159 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, 162 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText,
160 addon, use12Hours, 163 addon, use12Hours, hourStep, minuteStep, secondStep,
161 } = this.props; 164 } = this.props;
162 return ( 165 return (
163 <Panel 166 <Panel
@@ -180,6 +183,9 @@ export default class Picker extends Component {
180 disabledSeconds={disabledSeconds} 183 disabledSeconds={disabledSeconds}
181 hideDisabledOptions={hideDisabledOptions} 184 hideDisabledOptions={hideDisabledOptions}
182 use12Hours={use12Hours} 185 use12Hours={use12Hours}
186 hourStep={hourStep}
187 minuteStep={minuteStep}
188 secondStep={secondStep}
183 addon={addon} 189 addon={addon}
184 /> 190 />
185 ); 191 );