@easepick/amp-plugin
v1.2.1
Published
Plugin for easepick.
Downloads
51,526
Readme
@easepick/amp-plugin
This package does not need to be installed if you are using @easepick/bundle.
Adds extra options.
Documentation
https://easepick.com/packages/amp-plugin
Options:
| Name | Type | Default | Description
| --- | :---: | :---: | ---
| dropdown | object | { minYear: 1950, maxYear: null, months: false, years: false } | Enable dropdowns for months, years. If maxYear
is null
then maxYear
will be equal to (new Date()).getFullYear()
. years
can be equal to asc
string to change the sort direction.
| resetButton | boolean function | false | Adds a reset button to clear the current selection. It is allowed to pass a custom function that must return true
to clear the selection.
| darkMode | boolean | true | Allows dark mode to be used if the user's system settings are set to dark mode.
| weekNumbers | boolean | false | Show week numbers.
| locale | object | { resetButton: '' } | Texts for Amp plugin options.