react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

is there a way to use monthSelectPlugin , this doesnot seems to work ?

Open innv-imtinan opened this issue 2 years ago • 2 comments

<script>
import Flatpickr from 'react-flatpickr'
import monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect';
import '@styles/react/libs/flatpickr/flatpickr.scss'
import 'flatpickr/dist/plugins/monthSelect/style.css'
</script>

<Flatpickr
                value={selectedDate}
                onChange={date => setSelectedDate(date[0])}
                options={{
                    plugin: [
                        new monthSelectPlugin({
                            shorthand: true, //defaults to false
                            dateFormat: "m.y", //defaults to "F Y"
                            altFormat: "F Y", //defaults to "F Y"
                        })
                    ]
                }}

            />

innv-imtinan avatar Jan 31 '23 09:01 innv-imtinan