Extra - FontAwesome
Provide icons from fontawesome.
Initialization
To load this functionality from HTML:
<script>
CMS.loadExtra('fontawesome');
</script>
or from within config.js
extras: {
'fontawesome': {}
}
Refer to https://fontawesome.com/ for documentation and icons. This module does nothing other than just load the official icons from a local file.
Not affiliated with Fonticons, Inc. nor Font Awesome.
- Since:
- 4.0.0
- Copyright:
- (c) 2025 eVAL Agency
- License:
- The MIT License (MIT)
- Source:
- See:
Methods
(inner) Run()
Ensure fontawesome stylesheets are loaded in the DOM
- Source:
(inner) fontawesome_icon(icon, name)
Add necessary prefixes and class names to a given icon based on its icon name.
Parameters:
Name | Type | Description |
---|---|---|
icon |
HTMLElement | |
name |
string |
- Source: