tagMatches: Check that tag has specific properties

Description Usage Arguments Value Examples

View source: R/validation.R

Description

Return TRUE if a tag object matches a specific id, and/or tag name, and/or

Usage

1
tagMatches(item, ..., id = NULL, name = NULL, class = NULL)

Arguments

item

Tag to validate.

...

Any attribute to check (must be named).

id

Expected id.

name

Expected name.

class

Expected class.

Value

TRUE or FALSE, depending on the test result.

Examples

1
2
3
4
5
6
7
## Not run: 
 library(shiny)
 myTag <- div(class = "bg-blue")
 tagMatches(myTag, id = "d")
 tagMatches(myTag, class = "bg-blue")

## End(Not run)

DivadNojnarg/outstanding-shiny-ui-code documentation built on Nov. 2, 2021, 12:03 p.m.