victor-valencia / bootstrap-iconpicker

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

Possible to load in custom icons? #24

Closed emage closed 9 years ago

emage commented 9 years ago

Is it possible now or in the future to include custom icons created via iconmoon app or unicode?

lukasnagl commented 9 years ago

You can use any icon-set you have defined in your css. See the iconset options on the documentation page.

For example if your icon css class is “emageicon” and your icons are defined as “emageicon-one”, “emageicon-two”,…

$(".emage-iconpicker").iconpicker({
    iconset: {
      iconClass: 'emageicon',
      iconClassFix: 'emageicon-',
      icons: [ 'one', 'two']
    }
})

If you want to extend a given iconset by a few custom icons, I guess you would create a new font by loading the existing one and adding your custom icons, but there might be a more straight-forward/best practice way to do that.

emage commented 9 years ago

@j4zz thanks! What you suggested works like charm