View Source FontAwesome.Icon (ex_fontawesome v0.7.1)
This module defines the data structure and functions for working with icons stored as SVG files.
Link to this section Summary
Functions
Defines the FontAwesome.Icon struct.
Inserts HTML attributes into an SVG icon
Converts opts to HTML attributes
Parses a SVG file and returns structured data
Link to this section Types
Specs
Link to this section Functions
Defines the FontAwesome.Icon struct.
Its fields are:
:type
- the type of the icon:name
- the name of the icon:file
- the binary of the icon
Specs
insert_attrs( binary(), keyword() ) :: Phoenix.HTML.safe()
Inserts HTML attributes into an SVG icon
Specs
Converts opts to HTML attributes
Specs
Parses a SVG file and returns structured data