Air Datepicker

There are few options on how to Air Datepicker into your project.

Install from NPM

Install the Air Datepicker Js library from command prompt from the root directory of the project:

npm i air-datepicker -S

Add the Air Datepicker css file link.

<link rel="stylesheet" href="assets/libs/air-datepicker/air-datepicker.css""></link>

Add the Air Datepicker js file link.

<script src="assets/libs/air-datepicker/air-datepicker.js"></script>

Below the example how to use the package and make it working ApexTree on any page.

HTML

<input type="text" class="form-control" id="human-friendly-picker" placeholder="Select a date" />

Javascript

new AirDatepicker('#human-friendly-picker', {
    autoClose: false,
    dateFormat: 'dd/MM/yyyy',
    locale: localeEn,
});