micc83 / fontIconPicker

🌈 jQuery fontIconPicker v2 is a small (3.22kb gzipped) jQuery plugin which allows you to include a simple icon picker with search and pagination inside your administration forms.
http://micc83.github.io/fontIconPicker/
MIT License
266 stars 87 forks source link

Let the fontIconPicker use svg icons #32

Closed Screpuh closed 6 years ago

Screpuh commented 7 years ago

This request lets you also add SVGs to the font Icon Picker.

You can add SVGs to the picker by adding the source of the icon to an 'svg' attribute in the options tag like this:

<option svg="http://www.source.com/to.svg">icon-name</option>

Why you might want to use SVGs instead of font icons: https://css-tricks.com/icon-fonts-vs-svg/

swashata commented 6 years ago

Closing since it doesn't add the ability to add SVG through plugin config options. @Screpuh you may open an issue or watch #44 and once this is done, you can come up with a new PR.