Top Quality Products

Caleran – Date Range Picker

4.96
Expert ScoreRead review

$15.00

Added to wishlistRemoved from wishlist 0
Add to compare

613 sales

LIVE PREVIEW

Caleran – Date Range Picker

Introduction

In my search for a reliable and user-friendly date range picker plugin, I stumbled upon Caleran – Date Range Picker. With a score of 4.96, I was eager to put this plugin through its paces and see if it lived up to its promise. In this review, I’ll provide an in-depth look at Caleran’s features, usability, and overall performance.

Overview

Caleran is a jQuery-based date range picker plugin that can also be used as a single date picker. It’s designed to be highly customizable and can be easily integrated into your website or application. The plugin is built on top of moment.js and offers a range of features that make it an excellent choice for developers and non-developers alike.

Features

One of the standout features of Caleran is its flexibility. You can choose to show the date range picker inline or as a dropdown beside an input field. The plugin also offers a range of options for customizing its behavior, including the ability to hide specific parts of the instance, support for predefined ranges, and wide localization support.

Some other notable features of Caleran include:

  • Mobile-friendly design, with both portrait and landscape layouts supported
  • Sass template included for easy customization
  • Grunt file included for streamlined development
  • Option to use as a single date picker

Mobile Screenshots

To give you a better sense of Caleran’s mobile usability, I’ve included screenshots of the plugin in both portrait and landscape modes. As you can see, the plugin is well-designed and easy to use on mobile devices, with clear and intuitive date and time selection options.

Conclusion

Overall, I’m extremely impressed with Caleran – Date Range Picker. Its ease of use, flexibility, and range of features make it an excellent choice for anyone looking for a reliable date range picker plugin. With a score of 4.96, I highly recommend Caleran to anyone in the market for a top-notch date range picker.

Rating: 4.96/5

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Caleran – Date Range Picker”

Your email address will not be published. Required fields are marked *

Introduction

The Caleran Date Range Picker is a powerful and flexible JavaScript library that allows users to easily select a date range. It is a popular choice among developers due to its simplicity, customization options, and ease of use. In this tutorial, we will go through a step-by-step guide on how to use the Caleran Date Range Picker in your web application.

Step 1: Include the Caleran Date Range Picker Library

To use the Caleran Date Range Picker, you need to include the library in your HTML file. You can do this by adding the following script tag in the head section of your HTML file:

<script src="https://cdn.jsdelivr.net/npm/caleran-date-range-picker@1.2.0/dist/caleran-date-range-picker.min.js"></script>

Alternatively, you can download the library from the Caleran website and include it in your project manually.

Step 2: Create a Date Range Picker Instance

To create a Date Range Picker instance, you need to create a container element in your HTML file where the picker will be rendered. You can do this by adding a div element with a unique ID:

<div id="date-range-picker"></div>

Then, you can create a Date Range Picker instance by calling the CaleranDateRangePicker constructor and passing the container element as an argument:

var dateRangePicker = new CaleranDateRangePicker(document.getElementById('date-range-picker'));

Step 3: Configure the Date Range Picker

The Caleran Date Range Picker provides several options that you can configure to customize its behavior. Some of the most common options include:

  • startDate: The starting date of the date range picker.
  • endDate: The ending date of the date range picker.
  • minDate: The minimum date that can be selected.
  • maxDate: The maximum date that can be selected.
  • showCurrentDate: A boolean value that determines whether the current date is displayed in the picker.

You can configure these options by passing an object with the desired values to the CaleranDateRangePicker constructor:

var dateRangePicker = new CaleranDateRangePicker(document.getElementById('date-range-picker'), {
  startDate: new Date('2022-01-01'),
  endDate: new Date('2022-01-31'),
  minDate: new Date('2022-01-01'),
  maxDate: new Date('2022-02-28'),
  showCurrentDate: true
});

Step 4: Render the Date Range Picker

Once you have configured the Date Range Picker instance, you can render it by calling the render method:

dateRangePicker.render();

This will render the Date Range Picker in the container element.

Step 5: Handle Date Range Selection

When the user selects a date range, the Date Range Picker will trigger a select event. You can handle this event by adding an event listener to the select event:

dateRangePicker.on('select', function(event) {
  var startDate = event.startDate;
  var endDate = event.endDate;
  // Handle the selected date range
});

In this example, the event listener will be triggered whenever the user selects a new date range. The startDate and endDate properties of the event object will contain the selected start and end dates, respectively.

Conclusion

In this tutorial, we have gone through the steps to use the Caleran Date Range Picker in your web application. We have covered how to include the library, create a Date Range Picker instance, configure the options, render the picker, and handle date range selection. With these steps, you should be able to easily integrate the Caleran Date Range Picker into your project.

Here is an example of how to configure Caleran - Date Range Picker:

defaultSettings

defaultSettings: {
  enableTimePicker: true,
  enableSeconds: true,
  minDate: '2022-01-01',
  maxDate: '2022-12-31',
  dateFormat: 'yyyy-mm-dd',
  applyButton: 'Apply',
  cancelButton: 'Cancel'
}

timePickerSettings

timePickerSettings: {
  enableTimePicker: true,
  enableSeconds: true,
  hourInterval: 1,
  minuteInterval: 1,
  secondInterval: 1
}

languageSettings

languageSettings: {
  lang: 'en',
  dateFormats: {
    day: 'dd',
    month: 'mm',
    year: 'yyyy'
  }
}

themeSettings

themeSettings: {
  theme: 'material',
  colors: {
    primary: '#337ab7',
    secondary: '#e5e5e5',
    accent: '#f9f9f9'
  }
}

eventsSettings

eventsSettings: {
  onApply: (startDate, endDate) => {
    console.log(`Applied dates: ${startDate} - ${endDate}`);
  },
  onCancel: () => {
    console.log('Canceled');
  }
}

Note: You can customize these settings according to your requirements.

Here are the features of Caleran - Date Range Picker extracted from the content:

  1. Option to hide specific parts of the instance: Allows you to hide specific parts of the date range picker.
  2. Mobile friendly: Supports both portrait and landscape layouts on mobile devices.
  3. Support for predefined ranges: Allows you to set predefined date ranges.
  4. Can be shown as an inline control: Can be displayed inline beside an input field.
  5. Wide localization support: Supports multiple languages (available languages listed on Moment.js website).
  6. Can also be used as a single date picker: Can be used to select a single date, not just a range.
  7. Sass template included: Includes a Sass template for styling.
  8. Grunt file included: Includes a Grunt file for easy development and testing.

Additionally, the content mentions the following:

  • Caleran is built using jQuery and moment.js libraries.
  • It can be shown as a dropdown beside an input field.
  • It has a design inspired by a design on Dribbble.
  • There is a related product, Calentim Date Time Range Picker, which is also available on CodeCanyon.
Caleran – Date Range Picker
Caleran – Date Range Picker

$15.00

Shop.Vyeron.com
Logo
Compare items
  • Total (0)
Compare
0