victor-valencia / bootstrap-iconpicker

A simple icon picker
https://victor-valencia.github.com/bootstrap-iconpicker/
MIT License
381 stars 138 forks source link

Add current latest fontawesome pro version 5.14.0 (5.14.0_pro) #93

Open Windmolders opened 4 years ago

Windmolders commented 4 years ago

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();