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

Add ability to disable showing the next or previous dates in month #132

Open
loqimean opened this issue Dec 22, 2022 · 3 comments
Open

Add ability to disable showing the next or previous dates in month #132

loqimean opened this issue Dec 22, 2022 · 3 comments

Comments

@loqimean
Copy link

Will be nice to do something like next:

{
  ...
  daysOfNextMonth: false,    //  default is true
  daysOfPreviousMonth: false,    //  default is true
  ...
}

Might be even I can try to implement it. So, what you think?

@mymth
Copy link
Owner

mymth commented Dec 24, 2022

I'm not really interested in such feature, as it can be done in a way like this
#42 (comment)

Do you have a need to prevent those dates' DOM elements from being created? If not, I think the current simpler thus smaller program that updates existing fixed 42 cells without recreating DOM elements regardless of the month to render is more beneficial.

Or, do you have a need to toggle those dates' visibility dynamically? If so, I'd like to know about your case because I can't think of the cases where it's needed.

@loqimean
Copy link
Author

I'm not really interested in such feature, as it can be done in a way like this

#42 (comment)

Do you have a need to prevent those dates' DOM elements from being created? If not, I think the current simpler thus smaller program that updates existing fixed 42 cells without recreating DOM elements regardless of the month to render is more beneficial.

Or, do you have a need to toggle those dates' visibility dynamically? If so, I'd like to know about your case because I can't think of the cases where it's needed.

Hi, so, in my case I should disable dates of next or prev month by styles, but.., they are clickable (and it of course can be resolved by disabling the pointer events). It's not okay for my opinion and will be nice to have ability simply don't show it for current month.

@mymth
Copy link
Owner

mymth commented Dec 24, 2022

It looks like I can't click them.
https://codepen.io/mymth/pen/JjBYYoM
Are you saying that calling click() programmatically on the elements is possible?

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