1.2.0 • Published 1 year ago

@arwinvdv/amp-plugin v1.2.0

Weekly downloads
-
License
GPL-2.0-or-later
Repository
github
Last release
1 year ago

@arwinvdv/amp-plugin

npm version

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

Adds extra options.

Documentation

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

Options:

NameTypeDefaultDescription
dropdownobject{ 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.
resetButtonboolean functionfalseAdds a reset button to clear the current selection. It is allowed to pass a custom function that must return true to clear the selection.
darkModebooleantrueAllows dark mode to be used if the user's system settings are set to dark mode.
weekNumbersbooleanfalseShow week numbers.
localeobject{ resetButton: '' }Texts for Amp plugin options.