flatpickr Questions

6

Solved

I'm loading flatpickr using this: <script type="text/javascript"> jQuery(document).ready(function($){ $('#Mydatetime').flatpickr({ altInput: true, altFormat: "M j, Y @ H:i", enableTime: ...
Charismatic asked 20/10, 2018 at 22:0

2

Solved

I'm new in reactJS, and I am trying to use pure flatpickr (https://flatpickr.js.org , NOT react-flatpickr) Below is my current code. Any help on how to implement it properly? import React, { Co...
Spinthariscope asked 19/12, 2018 at 9:20

8

I'm using the amazing flatpickr on a project and need the calendar date to be mandatory. I'm trying to have all the validation in native HTML, so I was naively trying with just adding the required...
Ferreira asked 19/7, 2017 at 11:51

9

I have a date format of 19 Oct 2017 and want to convert it to this format 20171019 Is there a quick way of doing this? I am using FlatPickr in VueJs. Please find my code below if its any help. im...
Cruzeiro asked 12/10, 2017 at 11:9

2

Solved

I've got a Laravel project, and am trying to use flatpickr in it as per the following page: https://flatpickr.js.org/getting-started/ I was able to install flatpickr via npm i flatpickr --save and...
Gurl asked 7/3, 2019 at 4:35

1

I am using flatpickr in order to set a date, onChange: function(selectedDates, dateStr, instance) { var myDate = selectedDates[0]; First I am tracing selecteDate[0] and gives me a string Thu D...
Dew asked 19/12, 2018 at 12:58

1

Solved

This may be a basic question, but I'm struggling. Essentially I have a livewire component that updates an array of flight information that a user enters. Whenever the components get rerendered, the...
Conceit asked 21/9, 2020 at 11:57

1

Solved

In my laravel 7 /livewire 1.3 / alpinejs 2 project I added flatpickr datepicker from https://flatpickr.js.org datepicker works ok, but reactive does not work. In the code below $current_operation_d...
Samara asked 17/8, 2020 at 6:35

1

When I open then close the Flatpickr instance without picking a date it sets it to today's one. How to prevent that behavior? I need the date input to stay empty when not set by user. The Flatpick...
Albin asked 16/1, 2020 at 12:43

1

Solved

I'm trying to add a simple date-picker to a custom vue component. I'm not using webpack so I want to avoid ready made .vue components and I rather understand how to add simple javascript to vue. I'...
Inhale asked 28/4, 2017 at 14:19

1

Solved

I installed flatpickr by npm install flatpickr. Calender is displaying like when click on input control var React = require('React'); var ReactDOM = require('ReactDOM'); var Flatpickr = require('...
Crumble asked 6/12, 2016 at 20:40

3

Solved

I'm struggling with a Flatpickr's (https://chmln.github.io/flatpickr/) onDayCreate event. Is here anyone who knows better how to check if picker's date object matches any date in my array of dates?...
Frampton asked 29/10, 2016 at 23:46
1

© 2022 - 2025 — McMap. All rights reserved.