Skip to contents

Options for monthly view.

Usage

cal_month_options(
  cal,
  startDayOfWeek = NULL,
  daynames = NULL,
  narrowWeekend = NULL,
  visibleWeeksCount = NULL,
  isAlways6Week = NULL,
  workweek = NULL,
  visibleEventCount = NULL,
  ...
)

Arguments

cal

A calendar() object.

startDayOfWeek

Numeric. The start day of week.

daynames

Vector. The day names in monthly. Default values are 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'

narrowWeekend

Logical. Make weekend column narrow(1/2 width).

visibleWeeksCount

Numeric. The visible week count in monthly(0 or null are same with 6).

isAlways6Week

Logical. Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.

workweek

Logical. Show only 5 days except for weekend.

visibleEventCount

Numeric. The visible schedule count in monthly grid.

...

Additional options.

Value

A calendar htmlwidget.

Examples

# Change option for monthly view
calendar(view = "month") %>%
  cal_month_options(
    startDayOfWeek = 1,
    daynames = c("Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"),
    narrowWeekend = TRUE
  )