Bold only rows having specific texts

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?


ui <- fluidPage(

server <- function(input, output, session) {
  output$table <- renderDataTable({
    datatable(iris) %>% formatStyle(
      target = 'row', fontWeight = 'bold',columns = c('setosa'))

shinyApp(ui, server)

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.