Added methods for manipulating element classes and improved the optional/required when fieldset is used
This commit is contained in:
23
man/htmlAddClasses.Rd
Normal file
23
man/htmlAddClasses.Rd
Normal file
@@ -0,0 +1,23 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/htmlClassManipulation.R
|
||||
\name{htmlAddClasses}
|
||||
\alias{htmlAddClasses}
|
||||
\title{Add classes to an HTML element}
|
||||
\usage{
|
||||
htmlAddClasses(el, classes)
|
||||
}
|
||||
\arguments{
|
||||
\item{el}{The element to add the class(es) to}
|
||||
|
||||
\item{classes}{The class(es) to be added}
|
||||
}
|
||||
\value{
|
||||
The modified element
|
||||
}
|
||||
\description{
|
||||
Add classes to an HTML element
|
||||
}
|
||||
\examples{
|
||||
x <- shiny::tags$div()
|
||||
htmlAddClasses(x, "btn-warning")
|
||||
}
|
||||
23
man/htmlButtonStyle.Rd
Normal file
23
man/htmlButtonStyle.Rd
Normal file
@@ -0,0 +1,23 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/htmlClassManipulation.R
|
||||
\name{htmlButtonStyle}
|
||||
\alias{htmlButtonStyle}
|
||||
\title{Changes the style of a button from btn-default to another style}
|
||||
\usage{
|
||||
htmlButtonStyle(el, style)
|
||||
}
|
||||
\arguments{
|
||||
\item{el}{The button}
|
||||
|
||||
\item{style}{The style to change the button on}
|
||||
}
|
||||
\value{
|
||||
The modified element
|
||||
}
|
||||
\description{
|
||||
Changes the style of a button from btn-default to another style
|
||||
}
|
||||
\examples{
|
||||
x <- shiny::tags$div(class = "btn btn-warning")
|
||||
htmlButtonStyle(x, "warning")
|
||||
}
|
||||
23
man/htmlRemoveClasses.Rd
Normal file
23
man/htmlRemoveClasses.Rd
Normal file
@@ -0,0 +1,23 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/htmlClassManipulation.R
|
||||
\name{htmlRemoveClasses}
|
||||
\alias{htmlRemoveClasses}
|
||||
\title{Remove classes from an HTML element}
|
||||
\usage{
|
||||
htmlRemoveClasses(el, classes)
|
||||
}
|
||||
\arguments{
|
||||
\item{el}{The element to remove the class(es) from}
|
||||
|
||||
\item{classes}{The class(es) to be added}
|
||||
}
|
||||
\value{
|
||||
The modified element
|
||||
}
|
||||
\description{
|
||||
Remove classes from an HTML element
|
||||
}
|
||||
\examples{
|
||||
x <- shiny::tags$div(class = "btn btn-warning")
|
||||
htmlRemoveClasses(x, "btn-warning")
|
||||
}
|
||||
Reference in New Issue
Block a user