-
Notifications
You must be signed in to change notification settings - Fork 8
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
Removing current time indicator #7
Comments
Hello, There isn't a built-in option to do that, so a workaround is to use theme and template like this: calendar(view = "week") %>%
cal_theme(
week.currentTimeLinePast.border = "none",
week.currentTimeLineBullet.backgroundColor = "transparent",
week.currentTimeLineToday.border = "none",
week.currentTimeLineFuture.border = "none"
) %>%
cal_template(
timegridCurrentTime = JS(
"function() {return null;}"
)
) Note that the regular hour is missing, you can make it reappear with some CSS: .tui-full-calendar-timegrid-hour span {
display: block !important;
} In Shiny for example, include somewhere in your UI the following code: tags$style(
".tui-full-calendar-timegrid-hour span {display: block !important;}"
) Victor |
Hi @pvictor . Thank you for such a creative solution. However, there is one minor issue with that. Although it gets rid of the indicator, if the time has passed, then the calendar looks like this: Would I need to work with CSS to bring it back to its original state? |
You can add week.pastDay.color = "#000",
week.pastTime.color = "#000" in |
Thank you! |
Hi @pvictor. The current time indicator isn't shown when it isn't the systems date/time. But when it is, then it is shown. So is it possible to remove the current time indicator from the calendar? If so, could you please indicate how it is done?
Here is a snippet when the
defaultDate
is NOTSys.Date()
:Here is a snippet when the
defaultDate
isSys.Date()
:The text was updated successfully, but these errors were encountered: