Bootstrap Timepicker
Bootstrap Timepicker:一个简单的时间选择插件
GitHub地址:https://github.com/jdewit/bootstrap-timepicker
配置参数
Name | Options / Defaults | Description |
---|---|---|
template | 'dropdown' (default) 'modal' false |
Show picker in a dropdown Show picker in a modal Don't show a widget |
maxHours | 24 | Specify a maximum number of hours the TimePicker can handle. showMeridian must be set to false |
snapToStep | false | If 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. |
minuteStep | 15 | Specify a step for the minute field. |
showSeconds | false | Show the seconds field. |
secondStep | 15 | Specify 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 |
showMeridian | true (default) false |
12hr mode 24hr mode |
showInputs | true (default) false |
Shows the text inputs in the widget. Hide the text inputs in the widget |
disableFocus | false | Disables the input from focusing. This is useful for touch screen devices that display a keyboard on input focus. |
disableMousewheel | false | Disables the input from changing on mousewheel events |
modalBackdrop | false | Show modal backdrop. |
appendWidgetTo | body | Allow for custom placing of the widget |
explicitMode | false | When true, user can type "123" to set time to "1:23" or "12345" to set time to "1:23:45". |
icons |
|
An object with keys 'up' and 'down' representing CSS class names to be used for the widget's icon classes. |
分类:
Bootstrap
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 现代计算机视觉入门之:什么是图片特征编码
· .NET 9 new features-C#13新的锁类型和语义
· Linux系统下SQL Server数据库镜像配置全流程详解
· 现代计算机视觉入门之:什么是视频
· 你所不知道的 C/C++ 宏知识
· 不到万不得已,千万不要去外包
· C# WebAPI 插件热插拔(持续更新中)
· 会议真的有必要吗?我们产品开发9年了,但从来没开过会
· 【译】我们最喜欢的2024年的 Visual Studio 新功能
· 如何打造一个高并发系统?