Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@easepick/range-plugin

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easepick/range-plugin

Plugin for easepick.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
decreased by-7.97%
Maintainers
1
Weekly downloads
 
Created
Source

@easepick/range-plugin

npm version

This package does not need to be installed if you are using @easepick/bundle.

Adds the ability to select a range of dates.

Documentation

https://easepick.com/packages/range-plugin

Options

NameTypeDefaultDescription
elementEndHTMLElement
string
nullBind the datepicker to a element for end date.
startDateDate
string
number
nullPreselect start date.
Date Object or Unix Timestamp (with milliseconds) or String (must be equal to option format).
endDateDate
string
number
nullPreselect end date.
Date Object or Unix Timestamp (with milliseconds) or String (must be equal to option format).
repickbooleanfalseIf date range is already selected, then user can change only one of start date or end date (depends on clicked field) instead of new date range.
strictbooleantrueDisabling the option allows you to select an incomplete range.
delimiterstring' - 'Delimiter between dates.
tooltipbooleantrueShowing tooltip with how much days will be selected.
tooltipNumberfunctionHandling the tooltip number.
localeobject{ one: 'day', other: 'days' }Text for the tooltip.
Keys depends on option lang (see Intl.PluralRules).

Methods

NameDescription
setDateRange(start, end)Set date range. Should be Date Object or Unix Timestamp (with milliseconds) or String (must be equal to option format).
setStartDate(date)Set start of date range. Should be Date Object or Unix Timestamp (with milliseconds) or String (must be equal to option format).
setEndDate(date)Set end of date range. Should be Date Object or Unix Timestamp (with milliseconds) or String (must be equal to option format).
getStartDate()Return current start of date range as DateTime Object.
getEndDate()Return current end of date range as DateTime Object.

FAQs

Package last updated on 22 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc