semantic_DT | R Documentation |
This creates DT table styled with Semantic UI.
semantic_DT(
...,
options = list(),
style = "semanticui",
class = "ui small compact table"
)
... |
datatable parameters, check |
options |
datatable options, check |
style |
datatable style, check |
class |
datatable class, check |
if (interactive()){
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
semantic_DTOutput("table")
)
server <- function(input, output, session) {
output$table <- DT::renderDataTable(
semantic_DT(iris)
)
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.