Raistlfiren / FAIconFieldType

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/
MIT License
1 stars 1 forks source link
bolt bolt-extension fieldtype font-awesome icons

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.