Options for buttons displayed above calendar

bttn_options(
  today_label = "Today",
  prev_label = htmltools::tags$i(class = "fa fa-chevron-left"),
  next_label = htmltools::tags$i(class = "fa fa-chevron-right"),
  class = "bttn-jelly bttn-sm bttn-primary",
  bg = NULL,
  color = NULL
)

Arguments

today_label

Text to display on today button.

prev_label

Text to display on prev button.

next_label

Text to display on next button.

class

Class to add to buttons.

bg

Background color.

color

Text color.

Value

a list.

Note

Buttons are generated with the following CSS library : http://bttn.surge.sh/, where you can find available options for class argument.

Examples

# Use another button style calendar( defaultView = "month", useNav = TRUE, bttnOpts = bttn_options( class = "bttn-stretch bttn-sm bttn-warning" ) ) # Custom colors (background and text) calendar( defaultView = "month", useNav = TRUE, bttnOpts = bttn_options(bg = "#FE2E2E", color = "#FFF") ) # both calendar( defaultView = "month", useNav = TRUE, bttnOpts = bttn_options( bg = "#04B431", color = "#FFF", class = "bttn-float bttn-md" ) )