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, ns = NULL)

sel_input(value)

sel_all()

sel_class(value)

sel_tag(value)

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

Arguments

value

Value of selector.

ns

Shiny namespace, only applicable to sel_id.

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")

JohnCoene/linne documentation built on Jan. 16, 2022, 3:54 a.m.