template: Set template for a calendar

Description Usage Arguments Note Examples

Description

Template JS functions to support customer renderer

Usage

1
2
3
4
5
6
7
8
9
set_template(
  cal,
  milestoneTitle = NULL,
  taskTitle = NULL,
  alldayTitle = NULL,
  ...
)

js_title(title)

Arguments

cal

A calendar object.

milestoneTitle

The milestone title(at left column) template function

taskTitle

The task title(at left column) template function

alldayTitle

The allday title(at left column) template function

...

Additionals arguments, see online documentation.

title

Text to use as title.

Note

Online JavaScript documentation: https://nhn.github.io/tui.calendar/latest/Template

Examples

1
2
3
4
5
6
calendar(defaultView = "week", taskView = TRUE, scheduleView = c("allday")) %>% 
  set_template(
    milestoneTitle = js_title("TODO"),
    taskTitle = js_title("Assignment"),
    alldayTitle = js_title("Full-time")
  )

dreamRs/tuicalendr documentation built on Aug. 4, 2021, 12:02 a.m.