Icon: Create an icon

View source: R/cascadeSelect.R

IconR Documentation

Create an icon

Description

Create an icon with a given color and a given size.

Usage

Icon(icon = "pi pi-circle-fill", color = "red", size = "1.5rem", scale = 1)

Arguments

icon

the name (actually the class name) of the icon; PrimeIcons are available, for example "pi pi-youtube" (see PrimeIcons), fontawesome icons are available, for example "fa fa-paper-plane", and Bootstrap icons are available, for example "bi bi-apple" (see Bootstrap icons)

color

a CSS color, e.g. "crimson" or a hex code like "#ffaa07"

size

size of the icon, a css measurement (e.g. 1rem, 11px); for the oi family of icons (see oiIcons), do not change the default size and use the scale argument instead

scale

a positive number, the scale for an oi icon (see oiIcons); you must use this argument to control its size, not the size argument

Value

A list to be included in the fields icon of the choices list of cascadeSelectInput.

Note

The color argument has no effect on the oi icons.


cascadeSelect documentation built on July 9, 2023, 6:50 p.m.