|
|
In addition to FontAwesome icons supported by flexdashboard's `valueBox`, we have several custom ones for use in the stats dashboard.
|
|
|
|
|
|
![chickadee_2021-07-02_09_41_22](uploads/4130cfa1a328c756a02f6b919d765259/chickadee_2021-07-02_09_41_22.png)
|
|
|
|
|
|
They are inserted as SVG background by CSS rules, but the classes are kept in line with FA ones.
|
|
|
|
|
|
To use them, just replace the FA icon name with a custom one:
|
|
|
|
|
|
```diff
|
|
|
…
|
|
|
color = dashboard_colors[1],
|
|
|
- icon = "fas fa-user-lock"
|
|
|
+ icon = "fas fa-mojeid"
|
|
|
…
|
|
|
```
|
|
|
|
|
|
| icon | code |
|
|
|
| ---- | ---- |
|
|
|
| ![fa-mojeid](https://gitlab.nic.cz/adam/adam-dashboard/-/raw/devel/Dashboard/images/mojeid-icon.svg) | `icon = "fas fa-mojeid"` |
|
|
|
| ![fa-nia](https://gitlab.nic.cz/adam/adam-dashboard/-/raw/devel/Dashboard/images/eidentita.svg) | `icon = "fas fa-nia"`| |
|
|
\ No newline at end of file |