victor-valencia / bootstrap-iconpicker

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

Provided: Add latest fontawesome 5 (5.14.0_pro) #94

Open Windmolders opened 4 years ago

Windmolders commented 4 years ago

Code available in: https://github.com/victor-valencia/bootstrap-iconpicker/pull/93

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