Bootstrap Timepicker

Bootstrap Timepicker:一个简单的时间选择插件

GitHub地址:https://github.com/jdewit/bootstrap-timepicker

 

配置参数

NameOptions / DefaultsDescription
template'dropdown' (default)
'modal'
false
Show picker in a dropdown
Show picker in a modal
Don't show a widget
maxHours24Specify a maximum number of hours the TimePicker can handle. showMeridian must be set to false
snapToStepfalseIf true, setting the time will snap it to the closest "step", either minute or second, depending on which unit is currently highlighted. If the number would otherwise snap to 60 higher, the unit "overflows" to 0.
minuteStep15Specify a step for the minute field.
showSecondsfalseShow the seconds field.
secondStep15Specify a step for the second field.
defaultTime'current' (default)
'11:45 AM'
false
Set to the current time.
Set to a specific time.
Do not set a default time
showMeridiantrue (default)
false
12hr mode
24hr mode
showInputstrue (default)
false
Shows the text inputs in the widget.
Hide the text inputs in the widget
disableFocusfalseDisables the input from focusing. This is useful for touch screen devices that display a keyboard on input focus.
disableMousewheelfalseDisables the input from changing on mousewheel events
modalBackdropfalseShow modal backdrop.
appendWidgetTobodyAllow for custom placing of the widget
explicitModefalseWhen true, user can type "123" to set time to "1:23" or "12345" to set time to "1:23:45".
icons

{
    up: 'glyphicon glyphicon-chevron-up',
    down: 'glyphicon glyphicon-chevron-down'
}
An object with keys 'up' and 'down' representing CSS class names to be used for the widget's icon classes.

转载于:https://www.cnblogs.com/imguoc/p/5857589.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值