Methods summary
public
Khill\Fontawesome\FontAwesome
|
#
__construct( string $icon = '' )
Assigns the name to the icon
Assigns the name to the icon
Parameters
- $icon
string $icon Icon label
Returns
|
public
string
|
#
output( )
Outputs the FontAwesomeList object as an HTML string
Outputs the FontAwesomeList object as an HTML string
Returns
string HTML string of list
Throws
|
public
Khill\Fontawesome\FontAwesomeList
|
#
addClass( string $class )
Adds extra classes to list
Adds extra classes to list
Parameters
- $class
string $class CSS class
Returns
Throws
|
public
Khill\Fontawesome\FontAwesomeList
|
#
addItem( string $line )
Add an item to the list
Parameters
- $line
string $line Line to add to the list
Returns
Throws
|
public
Khill\Fontawesome\FontAwesomeList
|
#
addItems( string $lineArray )
Add multiple items to list
Add multiple items to list
Parameters
- $lineArray
string $lineArray Array of lines to add to list
Returns
Throws
|
public
|
#
setDefaultIcon( string $icon )
Sets the default icon to be used in the list
Sets the default icon to be used in the list
Parameters
- $icon
string $icon Icon label
Throws
|
public
|
#
setListItems( array $listItems )
Sets the entire list with multiple icons
Sets the entire list with multiple icons
Parameters
- $listItems
array $listItems Array of icons and list items
|