% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/htmlTable_style_handlers.R
\name{highlightRow}
\alias{highlightRow}
\alias{highlight_row}
\title{Highlight matching rows}
\usage{
highlightRow(x, condition, style = "warning")
}
\arguments{
\item{x}{A matrix or data.frame that will later be passed to \code{\link[=htmlTable]{htmlTable()}}.}

\item{condition}{A logical expression or logical vector used to select rows.}

\item{style}{The CSS style to apply to matched rows.}
}
\value{
\code{x} with a row highlight rule stored in its \code{htmlTable.style} attribute.
}
\description{
Adds a row highlight rule to an object that will later be rendered with
\code{\link[=htmlTable]{htmlTable()}}. The \code{condition} is evaluated against the table columns and
a \code{.rowname} variable containing the row names.
}
\details{
The \code{style} argument accepts:
\itemize{
\item a preset name such as \code{"warning"}, \code{"info"}, \code{"success"}, or \code{"muted"}
\item a bare color value, which becomes \code{background-color: ...}
\item raw CSS fragments, including named vectors such as \code{c(color = "white")}
}
}
\seealso{
Other htmlTableStyle: 
\code{\link{addHtmlTableStyle}()},
\code{\link{hasHtmlTableStyle}()}
}
\concept{htmlTableStyle}
