Create selectors to select particular elements.

sel_id(value)

sel_input(value)

sel_all()

sel_class(value)

sel_tag(value)

sel_attr(attribute, value = NULL, tag = NULL)

Arguments

value

Value of selector.

attribute

Name of attribute.

tag

Name of tag.

Details

The functions will print in the console the CSS selector they compose.

Functions

See also

%with%, %or%, and %child% as well as when_active(), when_hover(), and when_focus() for more sophisticated element selection.

Examples

# select element where id = x sel_id("x")
#> CSS selector: #x
# select all elements with class = "container" sel_class("container")
#> CSS selector: .container