分享好友 最新动态首页 最新动态分类 切换频道
2022最新打赏系统云赏 包天月季年视频打赏会员版 /影视付费系统 内置支付接口
2024-12-26 13:48
# Project : bootstrap-datetimepicker

2022最新打赏系统云赏 包天月季年视频打赏会员版 /影视付费系统 内置支付接口

====================================== [![Build Status](https://travis-ci.org/smalot/bootstrap-datetimepicker.png?branch=master)](https://travis-ci.org/smalot/bootstrap-datetimepicker) [Homepage](http://www.malot.fr/bootstrap-datetimepicker/) [Demo page](http://www.malot.fr/bootstrap-datetimepicker/demo.php) # Project forked This project is a fork of [bootstrap-datepicker project](https://github.com/eternicode/bootstrap-datepicker). # Home As 'bootstrap-datetimepicker' is restricted to the date scope (day, month, year), this project aims to support too the time picking (hour, minutes). # Screenshots ## Decade year view ![Datetimepicker decade year view](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_decade.png) This view allows to select the day in the selected month. ## Year view ![Datetimepicker year view](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_year.png) This view allows to select the month in the selected year. ## Month view ![Datetimepicker month view](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_month.png) This view allows to select the year in a range of 10 years. ## Day view ![Datetimepicker day view](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_day.png) This view allows to select the hour in the selected day. ## Hour view ![Datetimepicker hour view](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_hour.png) This view allows to select the preset of minutes in the selected hour. The range of 5 minutes (by default) has been selected to restrict buttons quantity to an acceptable value, but it can be overrided by the <code>minuteStep</code> property. ## Day view - meridian ![Datetimepicker day view meridian](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_day_meridian.png) Meridian is supported in both the day and hour views. To use it, just enable the <code>showMeridian</code> property. ## Hour view - meridian ![Datetimepicker hour view meridian](https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_hour_meridian.png) # Example Attached to a field with the format specified via options: ```html <input type="text" value="2012-05-15 21:05" id="datetimepicker"> ``` ```javascript $('#datetimepicker').datetimepicker({ format: 'yyyy-mm-dd hh:ii' }); ``` Attached to a field with the format specified via markup: ```html <input type="text" value="2012-05-15 21:05" id="datetimepicker" data-date-format="yyyy-mm-dd hh:ii"> ``` ```javascript $('#datetimepicker').datetimepicker(); ``` As component: ```html <div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy"> <input size="16" type="text" value="12-02-2012" readonly> <span class="add-on"><i class="icon-th"></i></span> </div> ``` ```javascript $('#datetimepicker').datetimepicker(); ``` As inline datetimepicker: ```html <div id="datetimepicker"></div> ``` ```javascript $('#datetimepicker').datetimepicker(); ``` # Using bootstrap-datetimepicker.js Call the datetimepicker via javascript: ```javascript $('.datetimepicker').datetimepicker() ``` ## Dependencies Requires bootstrap's dropdown component (`dropdowns.less`) for some styles, and bootstrap's sprites (`sprites.less` and associated images) for arrows. A standalone .css file (including necessary dropdown styles and alternative, text-based arrows) can be generated by running `build/build_standalone.less` through the `lessc` compiler: ```bash $ lessc build/build_standalone.less datetimepicker.css ``` ## Options All options that take a "Date" can handle a `Date` object; a String formatted according to the given `format`; or a timedelta relative to today, eg '-1d', '+6m +1y', etc, where valid units are 'd' (day), 'w' (week), 'm' (month), and 'y' (year). You can also specify an ISO-8601 valid datetime, despite of the given `format` : * yyyy-mm-dd * yyyy-mm-dd hh:ii * yyyy-mm-ddThh:ii * yyyy-mm-dd hh:ii:ss * yyyy-mm-ddThh:ii:ssZ ### format String. Default: 'mm/dd/yyyy' The date format, combination of p, P, h, hh, i, ii, s, ss, d, dd, m, mm, M, MM, yy, yyyy. * p : meridian in lower case ('am' or 'pm') - according to locale file * P : meridian in upper case ('AM' or 'PM') - according to locale file * s : seconds without leading zeros * ss : seconds, 2 digits with leading zeros * i : minutes without leading zeros * ii : minutes, 2 digits with leading zeros * h : hour without leading zeros - 24-hour format * hh : hour, 2 digits with leading zeros - 24-hour format * H : hour without leading zeros - 12-hour format * HH : hour, 2 digits with leading zeros - 12-hour format * d : day of the month without leading zeros * dd : day of the month, 2 digits with leading zeros * m : numeric representation of month without leading zeros * mm : numeric representation of the month, 2 digits with leading zeros * M : short textual representation of a month, three letters * MM : full textual representation of a month, such as January or March * yy : two digit representation of a year * yyyy : full numeric representation of a year, 4 digits ### weekStart Integer. Default: 0 Day of the week start. 0 (Sunday) to 6 (Saturday) ### startDate Date. Default: Beginning of time The earliest date that may be selected; all earlier dates will be disabled. ### endDate Date. Default: End of time The latest date that may be selected; all later dates will be disabled. ### daysOfWeekDisabled String, Array. Default: '', [] Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: disable weekends: `'0,6'` or `[0,6]`. ### autoclose Boolean. Default: false Whether or not to close the datetimepicker immediately when a date is selected. ### startView Number, String. Default: 2, 'month' The view that the datetimepicker should show when it is opened. Accepts values of : * 0 or 'hour' for the hour view * 1 or 'day' for the day view * 2 or 'month' for month view (the default) * 3 or 'year' for the 12-month overview * 4 or 'decade' for the 10-year overview. Useful for date-of-birth datetimepickers. ### minView Number, String. Default: 0, 'hour' The lowest view that the datetimepicker should show. ### maxView Number, String. Default: 4, 'decade' The highest view that the datetimepicker should show. ### todayBtn Boolean, "linked". Default: false If true or "linked", displays a "Today" button at the bottom of the datetimepicker to select the current date. If true, the "Today" button will only move the current date into view; if "linked", the current date will also be selected. ### todayHighlight Boolean. Default: false If true, highlights the current date. ### keyboardNavigation Boolean. Default: true Whether or not to allow date navigation by arrow keys. ### language String. Default: 'en' The two-letter code of the language to use for month and day names. These will also be used as the input's value (and subsequently sent to the server in the case of form submissions). Currently ships with English ('en'), German ('de'), Brazilian ('br'), and Spanish ('es') translations, but others can be added (see I18N below). If an unknown language code is given, English will be used. ### forceParse Boolean. Default: true
最新文章
打破写作瓶颈,AI全能工具助你快速提升写作水平!
在信息爆炸的时代,写作已经成为人们日常生活中不可或缺的一部分。无论是学生的论文、职场的报告,还是个人的创作,写作的需求无处不在。然而,面对繁重的写作任务,许多人常常感到力不从心。为了解决这一问题,爱制作AI应运而生,它是一款
天翼云盘怎么用 天翼云盘使用方法介绍【详解】
  天翼云盘 怎么用?相信广大的用户们对于这款天翼云盘软件也是非常的熟悉了,这款软件可以帮助用户们进行文件的存储、分享以及备份等等,功能还是比较丰富强大的,但是还是有不少的小伙伴都不知道怎么使用这款软件,今天小编就给大家带来
图解爬虫,用几个最简单的例子带你入门Python爬虫
爬虫一直是Python的一大应用场景,差不多每门语言都可以写爬虫,但是程序员们却独爱Python。之所以偏爱Python就是因为她简洁的语法,我们使用Python可以很简单的写出一个爬虫程序。本篇博客将以Python语言,用几个
[软件]搜狗输入法PC版 v14.4.0.9307 精简优化版
* 去广告,精简优化,禁止自动升级,有效阻止程序广告弹窗!* 纯净无广告,无多余干扰提示,默认无不必要联网程序驻留!* 阻止检测升级联网请求,下载释放广告程序收集相关信息推送广告行为* 可选:云计算候选、词库更新及账户配置同步、工
月神的迷宫角色强度排行榜-月神的迷宫2021角色强度排名
月神的迷宫今天就已经上新的了,游戏中很很多的不同的角色,但是很多玩家都不知道要怎么选择那些角色,那些角色比较强呢?下面小编就给大家带来月神的迷宫角色强度排行榜,希望可以帮到大家。
新起点|红花岗少儿普通话训练培训班学费一年多少钱_十大top排行榜
新起点|红花岗少儿普通话训练培训班学费一年多少钱_十大top排行榜新起点红花岗少儿普通话班,培训优质,学费亲民,荣登排行榜。  红花岗少儿普通话训练培训班十大排名汇总?小主持人相较于舞蹈,美术,没有那么多,且花费也比较小些,同时
提供商城网站制作/怎么进行网站推广
 1、HTTP 协议(HyperText Transfer Protocol,超文本传输协议):是客户端浏览器或其他程序与Web服务器之间的应用层通信协议 。 2、HTTPS 协议(HyperText Transfer Protocol over Secure Socket Layer&#x
遮天手游
遮天演绎手游,遮天前传手游,老铁们想知道有关这个问题的分析和解答吗,相信你通过以下的文章内容就会有更深入的了解,那么接下来就跟着我们的小编一起看看吧。 《遮天演绎手游,遮天前传手游》是一款基于同名网络小说《遮天》改编而来的
经典耐玩的端游排行榜前十名盘点,年度最佳的大型精品网络游戏
这期,将为大家带来年度最佳的经典端游,其中有:《英雄联盟》、《魔兽世界》、《原神》、《梦幻西游》、《地下城与勇士:创新世纪》、《穿越火线》、《永劫无间》、《炉石传说》、《剑网3》、《QQ飞车》在榜单之中,这些经典耐玩的能给玩家
相关文章
推荐文章
发表评论
0评