Giter Site home page Giter Site logo

datepicker-jalali's Introduction

Datepicker Jalali

v 0.0.0.1 By Hossein Rafiee

A Datepicker library based on jQuery for Jalali (Shamsi) date

Demo link

Requirements

  • jQuery version >= 1

How to use

Add style to head of your HTML file

<link rel="stylesheet" href="../dist/datepicker.css">

Add scripts of jQuery and Datepicker

<script src="../src/jquery-3.2.1.min.js"></script>
<script src="../dist/datepicker.js"></script>

Create a tag (anything you thinks,you need it ) and an input

<div class="calender"></div>
<input type="text" id="calendarInput">

So here we run Datepicker on it

$(".calender").datepicker({
    altField : "#calendarInput",
    date : "2015-01-02"
});

Options

option default values description
altField "" "selector of input" you must fill this option to show your pick date
altSecondaryField null "selector of input" optional for secondary field for Gregorian Date
minDate null "1394-01-06" optional for define your minimum date by Jalali Date
maxDate null "1396-05-12" optional for define your minimum date by Jalali Date
navRight "<" "anything" optional navigation definition
navLeft ">" "anything" optional navigation definition
format "short" "short","long" optional for define your export format
view "day" "day","month","year" optional for change start view of datepicker
pick "day" "day","month","year" optional for picking on datepicker if pick bigger than view then view equals to pick
date mybirthday:) "2016-12-28" required for showing today on datepicker
gregorian false false , true for change altField export to Gregorian date

Licence and Credits

The code and the documentation are released under the MIT License

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.