| name | String | - | sets the name of the generated input |
| onOpen | Function({ open }) | | when TimePicker panel is opened |
| onClose | Function({ open }) | | when TimePicker panel is opened |
+| hourStep | Number | 1 | interval between hours in picker |
+| minuteStep | Number | 1 | interval between minutes in picker |
+| secondStep | Number | 1 | interval between seconds in picker |
+ | focusOnOpen | Boolean | false | automatically focus the input when the picker opens |
## Test Case
showSecond: PropTypes.bool,
onClear: PropTypes.func,
use12Hours: PropTypes.bool,
+ hourStep: PropTypes.number,
+ minuteStep: PropTypes.number,
+ secondStep: PropTypes.number,
addon: PropTypes.func,
+ focusOnOpen: PropTypes.bool,
onKeyDown: PropTypes.func,
};
const {
prefixCls, className, placeholder, disabledHours, disabledMinutes,
disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond,
- format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, onKeyDown,
- hourStep, minuteStep, secondStep,
- format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen, onKeyDown,
++ format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear,
++ focusOnOpen, onKeyDown, hourStep, minuteStep, secondStep,
} = this.props;
const {
value, currentSelectPanel,
name: PropTypes.string,
autoComplete: PropTypes.string,
use12Hours: PropTypes.bool,
+ hourStep: PropTypes.number,
+ minuteStep: PropTypes.number,
+ secondStep: PropTypes.number,
+ focusOnOpen: PropTypes.bool,
onKeyDown: PropTypes.func,
};
prefixCls, placeholder, disabledHours,
disabledMinutes, disabledSeconds, hideDisabledOptions,
allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText,
- addon, use12Hours, onKeyDown, hourStep, minuteStep, secondStep,
- addon, use12Hours, focusOnOpen, onKeyDown,
++ addon, use12Hours, focusOnOpen, onKeyDown, hourStep, minuteStep, secondStep,
} = this.props;
return (
<Panel
disabledSeconds={disabledSeconds}
hideDisabledOptions={hideDisabledOptions}
use12Hours={use12Hours}
+ hourStep={hourStep}
+ minuteStep={minuteStep}
+ secondStep={secondStep}
addon={addon}
+ focusOnOpen={focusOnOpen}
onKeyDown={onKeyDown}
/>
);