Skip to content

A new field type to allow users to select font awesome icons. The field is based off the icon picker - http://mjolnic.com/fontawesome-iconpicker/

License

Notifications You must be signed in to change notification settings

Raistlfiren/FAIconFieldType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAIconFieldType

Field Usage -

	icon:
  		type: faiconpicker

To change the placement use ´placement´ and to hide the field (for the inline picker for example) use ´hidden´.

	icon:
  		type: faiconpicker
  		placement: inline
  		hidden: true

Font customisation.

	icon:
  		type: faiconpicker
  		default: fa-adn # Choose the default selected icon.
  		component: false # true|false => Add a component to the left of the input and display the selected icon.
  		icon_root_class: fa # custom the root class for icon, allow use of others fonts, not only FA.
  		configs:
  			icons: ["fa-adjust", "fa-adn", "fa-align-center"] # limit to a set of icons
  			... # options available from the library.

For more options to use in configs, see mjolnic/fontawesome-iconpicker.