victor-valencia / bootstrap-iconpicker

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

No icon? #7

Closed USvER closed 9 years ago

USvER commented 10 years ago

Configuration for no icon?

victor-valencia commented 10 years ago

In Iconpicker.ICONSET.glyphicon and Iconpicker.ICONSET.fa arrays, insert an empty string at begin in source code.

Iconpicker.ICONSET = {
        glyphicon : [
            '',
            'adjust',
            ...
       fa : [
            '',
            'adjust',
            ...  

this look like this

iconpicker no icon

osc2nuke commented 9 years ago

i think this should be directly ported to the master

osc2nuke commented 9 years ago

i just checked in Firefox when use your above example i get an error:

Error: Syntax error, unrecognized expression: . line 2: (jquery-1.11.0.min.js)

osc2nuke commented 9 years ago

i fixed with change on line 853: current: op.table.find('.'+icon).parent().addClass('btn-warning'); Fix: if(icon != ''){ op.table.find('.'+icon).parent().addClass('btn-warning'); }

erdemildiz commented 9 years ago

You can add icons:[' ',"adjust", iconset-fontawesome-4.2.0.js file and add if(pos != 0 && op.icon[pos] != '') v = op.iconClassFix + op.icons[pos]; else if(pos == 0) v = ' '; line 190 in bootstrap-iconpicker.js

ronenli commented 9 years ago

In version 1.6.0:

victor-valencia commented 9 years ago

In the latest version, this feature is included.