Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title elements #185

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Add title elements #185

wants to merge 12 commits into from

Conversation

lenafm
Copy link

@lenafm lenafm commented Aug 16, 2021

Add title, subtitle, caption and logo elements to reactable table.

The new elements can be styled using CSS with titleStyle, subtitleStyle, captionStyle, and logoStyle respectively. The background behind the elements can be styled using CSS with backgroundStyle.

Passing a string or character vector of google fonts to googlefonts imports the fonts.

title <- "some title"
titleStyle <- "color: red; font-family: Lato; font-size:18px;"
tbl <- reactable(data.frame(x = "a", stringsAsFactors = TRUE), title = title, titleStyle = titleStyle, googlefonts = "Lato")

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant