Code Monkey home page Code Monkey logo

datepicker's Introduction

DatePicker

Yet another jQuery-based date picker! This date picker provides an easy way of creating both single and multi-viewed calendars capable of accepting single, range, and multiple selected dates. Easy to style, with two example styles provided: an attractive 'dark' style, and a Google Analytics-like 'clean' style.

Quick start

Download the latest release, and jQuery.

<script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/js/datepicker/js/datepicker.js"></script>
<link rel="stylesheet" media="screen" type="text/css" href="/js/datepicker/css/base.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/js/datepicker/css/clean.css" />

<div id="simple-calendar"></div>

<script type="text/javascript">
  $('#simple-calendar').DatePicker({
    mode: 'single',
    inline: true,
    date: new Date()
  });
</script>

Take a look at the examples page for live, and additional examples. Then visit the API reference page.

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/foxrunsoftware/DatePicker/issues

Changelog

1.0.0 - 3/12/2012

  • Initial Release
  • Ripped out the built-in date formatter, this should be handled by the client
  • Removed the built-in parseDate functionality
  • Removed references to the 'week' column
  • Styled away the 'not in month' date cells
  • Split stylesheet into base.css to allow easier styling, and dark.css as the first full style
  • Added 'clean' style similar to Google Analytics date picker
  • Greyed out future dates for clean style
  • Removed the excessive left/right arrows from multi-month calendars
  • Highlight current date
  • Calendar month title: clicking when in 'range' mode selects the entire month. Clicking in single/multiple mode swaps between the monthly/yearly view unless there are multiple calendars
  • Refactored code for readability
  • Renamed options, renamed/refactored callbacks
  • Commented code

License/Credits

Copyright 2012, Justin Stern (www.foxrunsoftware.net)

Dual licensed under the MIT or GPL Version 2 licenses.

This project is based on DatePicker from http://www.eyecon.ro/datepicker/ This project is distinct from and not affiliated with the jquery.ui.datepicker

datepicker's People

Contributors

ksykulev avatar

Watchers

tatygrassini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.