Title: | Create a Flash Card |
---|---|
Description: | Create a flip over style Flash Card with desired data frame for Shiny application. |
Authors: | Jiena McLellan [aut, cre] |
Maintainer: | Jiena McLellan <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2025-03-10 02:32:45 UTC |
Source: | https://github.com/jienagu/flashcard |
Create a flash card with desired data frame
flashCard( data, frontColor = "#090e87", backColor = "#3443c9", front_text_color = "white", back_text_color = "white", width = NULL, height = NULL, elementId = NULL )
flashCard( data, frontColor = "#090e87", backColor = "#3443c9", front_text_color = "white", back_text_color = "white", width = NULL, height = NULL, elementId = NULL )
data |
df with front and back columns |
frontColor |
frond side background color |
backColor |
back side background color |
front_text_color |
frond text color |
back_text_color |
back text color |
width |
width |
height |
height |
elementId |
element id |
df1 <- data.frame( front = c("Title front","contentfront", "content second line"), back = c("Title back","content back", "second line") ) flashCard(df1, elementId = "card", front_text_color = "grey")
df1 <- data.frame( front = c("Title front","contentfront", "content second line"), back = c("Title back","content back", "second line") ) flashCard(df1, elementId = "card", front_text_color = "grey")
Output and render functions for using flashCard within Shiny applications and interactive Rmd documents.
flashCardOutput(outputId, width = "300px", height = "135px") renderFlashCard(expr, env = parent.frame(), quoted = FALSE)
flashCardOutput(outputId, width = "300px", height = "135px") renderFlashCard(expr, env = parent.frame(), quoted = FALSE)
outputId |
output variable to read from |
width |
width of the widget |
height |
height of the widget |
expr |
An expression that generates a flashCard |
env |
The environment in which to evaluate |
quoted |
Is |