flipdownWidgets: Create an HTML countdown widget using the flipdown.js library

Description Usage Arguments Value Examples

View source: R/flipdownWidgets.R

Description

This function creates an HTML widgets to display a countdown using the flipdown.js library.

Usage

1
2
3
4
5
6
7
8
9
flipdownWidgets(
  to,
  ...,
  theme = c("dark", "light"),
  headings = c("Days", "Hours", "Minutes", "Seconds"),
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

to

R object to be passed to the as.POSIXct function to specifying the target date.

...

all the argument to be passed to as.POSIXct.

theme

The theme of the widget. Possible value: "dark", "light".

headings

A character vector of length 4 specifying the heading related to each time part. Defaults to c("Days", "Hours", "Minutes", "Seconds").

width

Width of the countdown widget. Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

height

Not being used here. The height of the widget will be automatically sized according to the width of the widget.

elementId

An id for the widget (a random string by default).

Value

An HTML countdown widget

Examples

1
2

flipdownWidgets documentation built on June 30, 2021, 5:08 p.m.