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

helper to create tables in tooltips #59

Closed
jbkunst opened this issue Mar 17, 2016 · 1 comment
Closed

helper to create tables in tooltips #59

jbkunst opened this issue Mar 17, 2016 · 1 comment
Milestone

Comments

@jbkunst
Copy link
Owner

jbkunst commented Mar 17, 2016

Based in htmltools, something like:

tooltip_table <- function(x, y) {

  tbl <- map2(x, y, function(x, y){
    tags$tr(
      tags$th(x),
      tags$td(y)
    )
  }) %>% 
    tags$table(.)

  as.character(tbl) 

}
@jbkunst jbkunst added this to the v0.3.0 milestone Mar 17, 2016
@jbkunst
Copy link
Owner Author

jbkunst commented Mar 17, 2016

closed by 1b98658

@jbkunst jbkunst closed this as completed Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant