Code Monkey home page Code Monkey logo

calendarjs's Introduction

CalendarJS

Introduction

A simple but yet powerful calendar and datepicker component written in javascript with full featured API.

Example

<script type="text/javascript" src="https://github.com/riverside/calendarjs/blob/master/calendar-1.5.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://github.com/riverside/calendarjs/blob/master/themes/sky-blue/calendar.css" />

<span id="inlineCalendar"></span>

<script type="text/javascript">
var cal_1 = new Calendar({
    element: 'inlineCalendar',
    inline: true,
    months: 3,
    dateFormat: 'm/d/Y',
    onSelect: function (element, selectedDate, date, cell) {
        //do something
    }
});
</script>

Options

Option Type Default
year Number new Date().getFullYear()
month Number new Date().getMonth()
dayNames Array ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
dayNamesFull Array ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
monthNames Array ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
monthNamesFull Array ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
startDay Number 0
weekNumbers Boolean false
selectOtherMonths Boolean false
showOtherMonths Boolean true
showNavigation Boolean true
months Numeric 1
inline Boolean false
disablePast Boolean false
dateFormat String 'Y-m-d'
position String 'bottom'
minDate Date null
onBeforeOpen Function function () {}
onBeforeClose Function function () {}
onOpen Function function () {}
onClose Function function () {}
onSelect Function function () {}
onBeforeShowDay Function function () { return [true, '']; }

Demo

http://www.bulgaria-web-developers.com/projects/javascript/calendar/

Version

1.5

License

Dual licensed under the MIT and GPL v3 license.

calendarjs's People

Contributors

riverside avatar

Watchers

 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.