Open WallyJ opened 6 years ago
Same problem, i think bootstrap V4.0.0 is not supported
Ok same problem here..
But you can use data-provide="datepicker"
in your input, and you will be able to see a calendar, but you can't control it via datepicker API.
And when I call datepicker() in the console, I see Uncaught TypeError: $(...).datepicker is not a function
Expected behaviour
Used code from two different sources:
Sandbox: https://uxsolutions.github.io/bootstrap-datepicker/?markup=input&format=&weekStart=&startDate=&endDate=&startView=0&minViewMode=0&maxViewMode=4&todayBtn=false&clearBtn=false&language=en&orientation=auto&multidate=&multidateSeparator=&keyboardNavigation=on&forceParse=on#sandbox
And from the docs: https://bootstrap-datepicker.readthedocs.io/en/stable/
Side note. It was confusing, because one used an id, which was not explicitly described (Sandbox) The other uses a class, which is explicitly shown in the code (Docs).
Actual behaviour
Nothing happens when I click the input field using either sample code.
Bootstrap is loaded and Jquery is loaded as well.
Datepicker version used
1.7.1 Installed using "composer require eternicode/bootstrap-datepicker" as instructed on the packaging page, followed by the yarn instructions.