The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Selectors

Introduction

The Get Started guide present basic selectors which are plenty enough in most cases. However, linne comes with some more sophisticated ones if needed.

Basics

Below are the basic selectors available in linne.

Examples

sel_id("btn")
#> ℹ CSS selector: #btn
sel_class("aClass")
#> ℹ CSS selector: .aClass

Operators

You can also use some special operators to broaden or narrow down the selection.

Examples

sel_id('myId') %or% sel_class('myClass')
#> ℹ CSS selector: #myId,.myClass
sel_tag('div') %with% sel_class('aClass')
#> ℹ CSS selector: div.aClass

When

You can also use the when_* family of functions to narrow the selection based on the state of the element.

Examples

sel_tag("a") # select all a tag
#> ℹ CSS selector: a
sel_tag("a") %>% when_active() # selects a tags that are active
#> ℹ CSS selector: a:active
sel_id("myId") %>% when_hover()
#> ℹ CSS selector: #myId:hover

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.