Socket
Socket
Sign inDemoInstall

@easepick/range-plugin

Package Overview
Dependencies
3
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @easepick/range-plugin

Plugin for easepick.


Version published
Weekly downloads
12K
increased by13.31%
Maintainers
1
Install size
110 kB
Created
Weekly downloads
 

Readme

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

Last updated on 22 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc