Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@gothassos/easepick-range-plugin

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gothassos/easepick-range-plugin

Plugin for easepick.

latest
Source
npmnpm
Version
1.2.8
Version published
Maintainers
0
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 01 Nov 2024

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