Hi all,
In DT table, is there a way to bold only rows containing specific texts. For example can we color rows that has 'setosa' in Species column?
library(shiny)
ui <- fluidPage(
dataTableOutput("table")
)
server <- function(input, output, session) {
output$table <- renderDataTable({
datatable(iris) %>% formatStyle(
'Species',
target = 'row', fontWeight = 'bold',columns = c('setosa'))
)
})
}
shinyApp(ui, server)