View source: R/shinyYM-utils.R
tagMatches | R Documentation |
Return TRUE if a tag object matches a specific id, and/or tag name, and/or
tagMatches(item, ..., id = NULL, name = NULL, class = NULL)
item |
Tag to validate. |
... |
Any attribute to check (must be named). |
id |
Expected id. |
name |
Expected name. |
class |
Expected class. |
TRUE or FALSE, depending on the test result.
## Not run: library(shiny) myTag <- div(class = "bg-blue") tagMatches(myTag, id = "d") tagMatches(myTag, class = "bg-blue") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.