Module: Extras/FontAwesome

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
Author:
  • Charlie Powell
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: