How to make Pikaday datepicker always visible
datepicker, javascript, pikaday, visibility
Solution
At first, I have also implemented a hacky solution, but then I found a regular way to make Pikaday datepicker always visible:
var picker = new Pikaday(
{
field: document.getElementById('datepicker'),
bound: false,
container: document.getElementById('container'),
});
With the example here: https://pikaday.com/examples/container.html
Problem
I'm using the Pikaday javascript datepicker. The default functionality is to attach it to an input whereby clicking the input would load the datepicker and its position would be relative to the input. What I want is to use this library to show an always visible calendar. I tried several things without success such as attaching it to a div. I'd like to be able to have it always shown and be able to control its position. Any ideas?