We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I'm using emner-flatpickr in range mode and want to supply two values at start values, but I get an exception:
"Assertion Failed: {{ember-flatpickr}} requires a date to be passed as the value for flatpickr."
date
{{ember-flatpickr locale="da" mode="range" nextArrow=">" date=['01-01-2011', '12-12-2016'] dateFormat="d-m-Y" altFormat="Y-m-d" minDate=minDate onChange=(action "setDateRange") placeholder="Vælg en periode..." prevArrow="<" weekNumbers=true classNames="form-control" }}
The text was updated successfully, but these errors were encountered:
I don't think the example you provided is valid handlebars.
date=['01-01-2011', '12-12-2016'] would not work. You would have to setup an array in your JS and pass it down.
date=['01-01-2011', '12-12-2016']
Sorry, something went wrong.
I have tried with an array in js, but it seemed to make flatpickr ignore the mode=range setting so it only took the first value.
But I found out what was wrong - it was the mindate - it was later than one of the values in the range! I adjusted and now it works :-)
Thanks for responding.
Happy New Year.
No branches or pull requests
Hi
I'm using emner-flatpickr in range mode and want to supply two values at start values, but I get an exception:
"Assertion Failed: {{ember-flatpickr}} requires a
date
to be passed as the value for flatpickr."{{ember-flatpickr
locale="da"
mode="range"
nextArrow=">"
date=['01-01-2011', '12-12-2016']
dateFormat="d-m-Y"
altFormat="Y-m-d"
minDate=minDate
onChange=(action "setDateRange")
placeholder="Vælg en periode..."
prevArrow="<"
weekNumbers=true
classNames="form-control"
}}
The text was updated successfully, but these errors were encountered: