Welcome to ClientVPS Mirrors

Selectors

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

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.