Wrapper class for https://fortawesome.github.io/Font-Awesome/.

Class name

E.widget.fontawesome (0.2.0)

Methods

Method Parameters Returns Description Example
attr key, value this Add attribute key/value to component attr('id','myicon')
build string Build string of component markup build()
append jquery selector boolean Build and append string to DOM append('#mydiv')
border this Set border option (.fa-border) border()
fixedwidth this Set fixed width option (.fa-fw) fixedwidth()
flip h/horz/horizontal
v/vert/vertical
this Flip icon (.fa-flip-{{dir}}) flip('v')
rotate 0-360 this Rotate icon (.fa-rotate-{{degrees}}) rotate(90)
size lg, 2x, 3x, 4x, 5x this Set icon size (.fa-{{size}}) size('3x')

Examples

Default
Border
Fixed width
Flip
Rotate
Size
Last modified: 2016-02-05