selectors: Selectors

Description Usage Arguments Details Functions See Also Examples

Description

Create selectors to select particular elements.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
5
# select element where id = x
sel_id("x")

# select all elements with class = "container"
sel_class("container")

linne documentation built on Jan. 8, 2021, 2:24 a.m.