Changelog
scoutbaR 0.2.5
Breaking change
- You can now pass icons as shiny tags (
icon("cogs")
) inscout_action
:
# old
scout_action(
id = 3,
icon = "house",
label = "3",
description = "3"
)
# now
scout_action(
id = 3,
icon = icon("house"),
label = "3",
description = "3"
)
This allows to leverage other icon sets that fontawesome.
Note that any dependency attached to the icon is dropped, which avoid issues with the scoutBar on the JS side. You can capture these dependencies using htmltools and adding them manually in the application UI part. For instance, if you use the phosphoricons package (with ph_i
), you can call phosphoricons::html_dependency_phosphor()
in your app UI function. This limitation may be removed in the future, provided that this issue is solved.