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

Adding table classes removes column header #18

Closed
JasonAizkalns opened this issue Feb 20, 2015 · 1 comment
Closed

Adding table classes removes column header #18

JasonAizkalns opened this issue Feb 20, 2015 · 1 comment

Comments

@JasonAizkalns
Copy link

Not sure if this expected behavior?

Referring to my StackOverflow Q&A

Consider:

datatable(iris, container = htmltools::tags$table(class="hover row-border"))

What happened to the column headers?

@yihui yihui closed this as completed in f1fc7d3 Mar 4, 2015
@yihui
Copy link
Member

yihui commented Mar 4, 2015

The SO post has been answered, and here is the slightly simplified code with the latest version of DT:

library(DT)
library(htmltools)
datatable(
  head(iris, 20),
  container = tags$table(
    class="stripe row-border",
    tableHeader(iris)
  )
)

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

No branches or pull requests

2 participants