jquery-ui-timepicker-addon

2018-06-14 admin

jquery-ui-timepicker-addon是什么

什么是jquery-ui-timepicker-addon,The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker and slider components (jQueryUI) are required for using any of these. In addition all datepicker options are still available through the timepicker addon.

jquery-ui-timepicker-addon介绍、jquery-ui-timepicker-addon使用

About

Use

I recommend getting the eBook Handling Time as it has a lot of example code to get started. The quick and dirty:

  • To use this plugin you must include jQuery (1.6+) and jQuery UI with datepicker (and optionally slider).
  • Include timepicker-addon script and css located in the dist directory or from a CDN:
  • now use timepicker with $('#selector').datetimepicker() or $('#selector').timepicker().

There is also a Bower package named jqueryui-timepicker-addon. Beware there are other similar package names that point to forks which may not be current.

Rails with Bower

If you happen to use Rails with the [bower](gem “bower-rails”, “~> 0.8.3”) gem, here it is to use it easily :

Bowerfile

asset "jqueryui-timepicker-addon", "1.5.6"

application.js

//= require jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon
//= require jqueryui-timepicker-addon/dist/i18n/jquery-ui-timepicker-fr

application.css.scss

@import "jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css";

Contributing Code - Please Read!

  • All code contributions and bug reports are much appreciated.
  • Please be sure to apply your fixes to the “dev” branch.
  • Also note tabs are appreciated over spaces.
  • Please read the CONTRIBUTING.md for more on using Grunt to produce builds.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-34048.html

文章标题:jquery-ui-timepicker-addon

回到顶部