Skip to content

Commit

Permalink
updated calendar week & month options args
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Sep 26, 2023
1 parent c9064b5 commit 14c8445
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: toastui
Title: Interactive Tables, Calendars and Charts for the Web
Version: 0.3.0
Version: 0.3.0.9000
Authors@R: c(
person("Victor", "Perrier", email = "[email protected]", role = c("aut", "cre", "cph")),
person("Fanny", "Meyer", role = "aut"),
Expand Down
21 changes: 12 additions & 9 deletions R/calendar-options.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
#' @param daynames Vector. The day names in weekly and daily. Default values are 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'.
#' @param narrowWeekend Logical. Make weekend column narrow(1/2 width).
#' @param workweek Logical. Show only 5 days except for weekend.
#' @param showNowIndicator Display or not the current time indicator in the weekly/daily view.
#' @param showTimezoneCollapseButton Logical. Show a collapse button to close multiple timezones
#' @param timezonesCollapsed Logical. An initial multiple timezones collapsed state.
#' @param hourStart Numeric. Can limit of render hour start.
#' @param hourEnd Numeric. Can limit of render hour end.
#' @param taskView Show the milestone and task in weekly, daily view.
#' The default value is `FALSE`. If the value is a vector, it can be `"milestone"`, `"task"`.
#' @param scheduleView Show the all day and time grid in weekly, daily view.
#' @param eventView Show the all day and time grid in weekly, daily view.
#' The default value is `TRUE`. If the value is a vector, it can be `"allday"`, `"time"`.
#' @param collapseDuplicateEvents Collapse duplicate events in the daily/weekly view.
#' @param ... Additional options.
#'
#' @note Online JavaScript documentation: \url{https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#week}
Expand All @@ -30,12 +32,14 @@ cal_week_options <- function(cal,
daynames = NULL,
narrowWeekend = NULL,
workweek = NULL,
showNowIndicator = NULL,
showTimezoneCollapseButton = NULL,
timezonesCollapsed = NULL,
hourStart = NULL,
hourEnd = NULL,
scheduleView = TRUE,
eventView = TRUE,
taskView = FALSE,
collapseDuplicateEvents = NULL,
...) {
check_cal(cal, "cal_week_options")
.widget_options(
Expand All @@ -45,12 +49,14 @@ cal_week_options <- function(cal,
dayNames = daynames,
narrowWeekend = narrowWeekend,
workweek = workweek,
showNowIndicator = showNowIndicator,
showTimezoneCollapseButton = showTimezoneCollapseButton,
timezonesCollapsed = timezonesCollapsed,
hourStart = hourStart,
hourEnd = hourEnd,
scheduleView = list1(scheduleView),
eventView = list1(eventView),
taskView = list1(taskView),
collapseDuplicateEvents = collapseDuplicateEvents,
...
)
}
Expand All @@ -68,8 +74,7 @@ cal_week_options <- function(cal,
#' @param visibleWeeksCount Numeric. The visible week count in monthly(0 or null are same with 6).
#' @param isAlways6Week Logical. Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.
#' @param workweek Logical. Show only 5 days except for weekend.
#' @param visibleScheduleCount Numeric. The visible schedule count in monthly grid.
#' @param scheduleFilter List of parameters, see online documentation.
#' @param visibleEventCount Numeric. The visible schedule count in monthly grid.
#' @param ... Additional options.
#'
#' @note Online JavaScript documentation: \url{https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#month}
Expand All @@ -86,8 +91,7 @@ cal_month_options <- function(cal,
visibleWeeksCount = NULL,
isAlways6Week = NULL,
workweek = NULL,
visibleScheduleCount = NULL,
scheduleFilter = NULL,
visibleEventCount = NULL,
...) {
check_cal(cal, "cal_month_options")
.widget_options(
Expand All @@ -99,8 +103,7 @@ cal_month_options <- function(cal,
visibleWeeksCount = visibleWeeksCount,
isAlways6Weeks = isAlways6Week,
workweek = workweek,
visibleScheduleCount = visibleScheduleCount,
scheduleFilter = scheduleFilter,
visibleEventCount = visibleEventCount,
...
)
}
Expand Down
7 changes: 2 additions & 5 deletions man/cal_month_options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions man/cal_week_options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14c8445

Please sign in to comment.