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

click from typescript and possibility to deselect? #604

Open
Marius-Romanus opened this issue May 12, 2021 · 2 comments
Open

click from typescript and possibility to deselect? #604

Marius-Romanus opened this issue May 12, 2021 · 2 comments

Comments

@Marius-Romanus
Copy link

Hello, I have two questions: can you "click" from typescript in a day or time? And, can you "deselect" the calendar when you have already selected a day?
Thank you very much!

@twinssbc
Copy link
Owner

@Marius-Romanus
Regarding "click" from typescript, you can't do that, what you can is to change the currentDate, and that day will be selected.
Regarding "deselect", if you just want to reset the background of selected date, you could use customized view and some logic to achieve that. For example, the first time you click it, the background is highlighted, the second time you click it, the background is reverted back.

@Marius-Romanus
Copy link
Author

Hi, I said about selecting it because I have the autoSelect option to false and when I equal the currentDay to today, the 'monthview-selected' class is not applied, I don't know if there will be any way to achieve this. The second part, what I wanted to achieve was that when changing calendarMode I wanted to deselect everything.
If this is not possible, it would be interesting to have a function that for example passes the start, end and allDay or null to deselect.
Thank you very much, again, and good job!

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