# Use another button style
calendar(
navigation = TRUE,
navOpts = navigation_options(
class = "bttn-stretch bttn-sm bttn-warning"
)
)
# Custom colors (background and text)
calendar(
navigation = TRUE,
navOpts = navigation_options(bg = "#FE2E2E", color = "#FFF")
)
# both
calendar(
navigation = TRUE,
navOpts = navigation_options(
bg = "#04B431", color = "#FFF",
class = "bttn-float bttn-md"
)
)
# Change date format and separator
calendar(
navigation = TRUE,
navOpts = navigation_options(
fmt_date = "DD/MM/YYYY",
sep_date = " - "
)
)
Run the code above in your browser using DataLab