Skip to content

Conversation

@Windmolders
Copy link

Adds the latest icons from fontawesome.
I wrote a JS script that generates the array of class names from the fontawesome website:
https://gist.github.com/Windmolders/7347d1ad1407fcf4636c5d82008c17a1

How to use the 5.14.0_pro version? Take note of data-iconset-version.

<button class="btn btn-primary js-icon-pickers" data-iconset="fontawesome5" data-iconset-version="5.14.0_pro" data-icon="" role="iconpicker"></button>

Initiate your rolepicker. Data attributes will be automatically used as configuration. I use "js-" in my css classed to indicate it use that css class for javascript purposes. No styling is applied on those classes #tipoftheday.

 $('.js-icon-pickers').iconpicker();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant