Images
Syntax
icon($iconSource)
Description
Creates a ThemeImage
with a given source.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
iconSource | String or arbitrary object | Source from which the image is constructed. A character string is expected to be an icon definition, e.g. "css:fa-solid fa-font-awesome". For all other objects, the icon that is configured to display the link to the object is supplied. | yes |
Return Value
type: ThemeImage
Examples
icon("css:far fa-thumbs-up")
icon("/images/img.png")