Skip to content
New issue

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

disable : Is it possible to use it with a function? #253

Closed
bsylvain opened this issue Jul 2, 2018 · 3 comments
Closed

disable : Is it possible to use it with a function? #253

bsylvain opened this issue Jul 2, 2018 · 3 comments

Comments

@bsylvain
Copy link

bsylvain commented Jul 2, 2018

Flatpickr can use a function for disable : https://flatpickr.js.org/examples/#disabling-dates

I cannot make it work in ember-flatpickr, is there any example of disable used with a function ?

@RobbieTheWagner
Copy link
Owner

@bsylvain can you please share what you have tried? We're just passing the options to flatpickr, so it should support the same things.

@bsylvain
Copy link
Author

bsylvain commented Jul 6, 2018

I managed to get it working, I needed to put the fonction in an array and use arrow function to be able to use this.get().

@RobbieTheWagner
Copy link
Owner

Glad to hear it works for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants