分享好友 最新动态首页 最新动态分类 切换频道
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
最新文章
2024年甘肃省农业农村厅事业单位招聘公告
2024年度甘肃省农业农村厅所属事业单位招聘工作人员公告已正式发布。此次招聘旨在选拔一批高素质、专业化的人才,以进一步加强甘肃省农业农村厅所属事业单位的人才队伍建设,推动农业农村事业的持续发展。,,公告中详细列出了招聘岗位、招
2021年热门大型3D手机游戏精选,人气排行榜前十名游戏推荐
1、《天涯明月刀手游》游戏类型:3D MMORPG发布公司:腾讯游戏描述:根据经典同名端游改编,拥有电影级的3D大场景和绝美画面,展现了真实的武侠世界,玩家可以拜师收徒、参加帮会活动,体验不同阵营之间的战斗。2、《和平精英》游戏类型:
10万信用卡逾期1年后该如何处理
10万信用卡逾期1年小编导语在现代社会中,信用卡已经成为人们日常消费中不可或缺的一部分。它不仅为我们提供了便利的支付方式,还可以让我们在紧急情况下获得资金支持。信用卡的使用也伴随着风险,一旦逾期还款,就可能导致严重的后果。本
beego+goAdmin+mysql+docker+natapp作为微信小程序地服务器“伪部署”
写在前面的话 1. 为什么我要叫伪部署 答: 因为我把它们放在服务器运行,都是开发模式。生产模式实在不会弄,所以就这样了。 2. 系统环境 答: 腾讯云服务器 系统为:ubuntu 版本不记得,应该是比较高
AI剧本台词创作与优化:涵剧本编写、对话生成、情感表达全攻略
以下是一个剧本生成的案例分为三个部分实行介绍:1. 剧本概述: 本剧本讲述了一个未来世界人类依高度智能化的系统实行日常生活。某天系统突然出现异常,致使全球范围内的恐慌与混乱。主人公杰克,一名普通的程序员,意外发现系统背后的秘密
2017最新短句说说精选
随着社交网络的普及,短句说说成为了人们表达情感、分享生活的重要方式,2017年,这一趋势愈发明显,许多富有创意和哲理的短句说说在各大社交平台流传,本文将带你领略2017最新短句说说的魅力,一起感受这些简短文字所传递的力量。短句说说
2024年最新wordpress免登录文章发布接口下载支持最新版本
?php//版本:1.2define('in_skycaiji2cms', 1);//权限include 'head.php';class skycaiji2cms{public $charset;//编码public $pluginPath;//插件根目录public $pluginUrl;//插件根网址public $pluginConfig;//插件配置public $funcError;//
2025手机赚钱最快的APP软件排行榜:真实靠谱赚钱项目有哪些?
2025手机赚钱最快的APP软件排行榜:真实靠谱赚钱项目有哪些?在探寻2025年手机赚钱最快途径的过程中,不少朋友提出了这样的疑问:当前有哪些副业项目能迅速带来收益?对此,答案可谓因人而异,毕竟每个人的需求、时间投入及能力水平各不相
27 个 iOS 开源库,让你的开发坐上火箭吧
这本应该是iOS中一个标准、内置的解决空table和collection view的方式。默认的如果你的table view是空的,屏幕就是空的。但这不是你能提供的最好的用户体验。用了这个库,你只需要遵循一系列协议,iOS会优雅地接管你的collection view并且
2021筑梦公馆双开挂机必备!最新免费神器大盘点及揭秘
在这个快节奏的数字时代,游戏已经成为我们放松身心、寻找乐趣的重要方式之一,而《筑梦公馆》作为一款深受玩家喜爱的游戏,更是以其独特的剧情和丰富的玩法吸引了大量忠实粉丝,对于许多玩家来说,如何在忙碌的生活中保持游戏进度,同时又
相关文章
推荐文章
发表评论
0评