ui-utils: UI Helper Functions

ui-utilsR Documentation

UI Helper Functions

Description

These functions wrap or assist shiny UI functions.

Usage

anchor_date(id)

year_first_monday(date = lubridate::today())

calendar_title(id)

date_range(id)

year_start(date = lubridate::today())

year_end(date = lubridate::today())

download_dropdown(id, inputId = "download_dropdown")

download_button(
  id,
  inputId = "download",
  label = toupper(gsub("_", " ", inputId))
)

rotations(id)

Arguments

id

ID assigned to the module calling the function

date

A date to use for determining the year; defaults to today()

inputId

ID to give to this instance of the function

label

A user-facing label for the UI element


jesse-smith/schedules documentation built on July 21, 2022, 9:40 a.m.