Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

opensource-nepal/nepali-date-picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepali Date Picker

NPM Version Build Status Download Count

Nepali Date Picker jQuery Plugin for everyone. 🇳🇵

Installation

npm install nepali-date-picker

Demo and Documentation

https://leapfrogtechnology.github.io/nepali-date-picker/demo/

Usage

Include jQuery, nepaliDatePicker.min.js and nepaliDatePicker.min.css in your HTML.

<!-- this should go after your </body> -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/jquery.nepaliDatePicker.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/nepaliDatePicker.min.css" crossorigin="anonymous" />

Add Input Element

<input type="text" value="" name="date" class="date-picker" />

Initialize Date Picker

$('.date-picker').nepaliDatePicker({
  dateFormat: '%D, %M %d, %y',
  closeOnDateSelect: true,
  minDate: 'सोम, जेठ १०, २०७३',
  maxDate: 'मंगल, जेठ ३२, २०७३'
});

Contributing

Install

npm install
npm run update

Build

npm run build

Test

npm test

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.3%
  • CSS 8.7%