You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven’t documented this yet but what you ended up doing is how I would do it.
I am afraid that importing all plugins into the stimulus-flatpickr wrapper would increase the size with lots of unnecessary stuff.
Tree shaking would probably work for this but not everyone is using bundlers with tree shaking
How can we add support for these plugins?
https://flatpickr.js.org/plugins/#rangeplugin-beta
https://github.com/flatpickr/flatpickr/tree/master/src/plugins
I kind of solved it by importing for example the
rangePlugin
from flatpicker plugins folder:And i used it in the config:
and then in the view i did:
It works but i feel this should be part of the
stimulus-flatpicker
's api without having to import stuff.Thanks,
Khalil Gharbaoui
The text was updated successfully, but these errors were encountered: