-
Notifications
You must be signed in to change notification settings - Fork 147
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
Popup message #20
Comments
Like what? I don't think this is related to the module itself. Can you explain in detail what you want to achieve ? |
Sorry for misunderstanding. I mean in the inline style, when I click any date, it shows a posts popup of that date |
Doesn't using changeDate event listener work? If what you want is simply to capture a click on a day regardless of the datepicker's state, you might be able to do something like this. window.showMessage = (dateStr) => {
alert(`Clicked date is ${dateStr}`);
};
const datepicker = new Datepicker(elem, {
beforeShowDay: (date) => ({
content: `<span onclick="showMessage('${date.toDateString()}')">${date.getDate()}</span>`,
}),
}); |
how i can listen onclick date and get data??? |
Hello. How to show a popup message when I click one date?
Thanks.
The text was updated successfully, but these errors were encountered: