Closed mystyroi closed 7 years ago
Can you put the source on jsfiddle or jsbin like in readme?: https://github.com/nazar-pc/PickMeUp#contribution
Okay, i've created it here https://jsfiddle.net/sL7a2uam/
Usage : Select the date from the first calendar, it will show the second calendar (which is the first time i generate the pickmeup object) but then, when i try to make a change of the date on the first calendar, the destroy function doesnt work)
I want to destroy to re-generate the second calendar because i don't succed to update dynamically the object parameters.
I've read a thread where you say to use the "render" in the parameter but it's the same, its not updating when i re-declare the pickemeup object (it doesnt take count)
Just released 3.0.8 with fix for this issue. Let me know if you have any other issues.
It works great now like I was excepting, thank you !
Good to hear, thanks for reporting with working demo!
Hi,
When i try to suppress the pickmeup, i've used the destroy function destroy() on addEventListener('DOMContentLoaded',...) block :
pickmeup('.date').destroy(); (I've initialized well a pickemeup calendar)
The error is :
Uncaught TypeError: Cannot read property 'indexOf' of undefined
I want to destroy my calendar to make it reappear each time my first calendar is updated. I want to do this because once the pickemup object is created, its parameter are impossible to update/alter, so i want to delete first to create another with a var as parameter
Final objective : having two calendars, the second one has to disable days before the date choosen in the first calendar by the user.
COMPLETE CODE