mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(date-picker): type flatpickrProps
This commit is contained in:
parent
bc0b048e30
commit
f2a445cb7e
3 changed files with 18 additions and 5 deletions
|
@ -56,7 +56,11 @@
|
|||
/** Set an id for the date picker element */
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
/** Set to `true` to use in component Modal */
|
||||
/**
|
||||
* Override the options passed to the Flatpickr instance
|
||||
* https://flatpickr.js.org/options
|
||||
* @type {import("flatpickr/dist/types/options").Options}
|
||||
*/
|
||||
export let flatpickrProps = {};
|
||||
|
||||
import {
|
||||
|
@ -141,7 +145,7 @@
|
|||
maxDate,
|
||||
minDate,
|
||||
mode: $mode,
|
||||
...flatpickrProps
|
||||
...flatpickrProps,
|
||||
},
|
||||
base: inputRef,
|
||||
input: inputRefTo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue